keyboard stuff
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "process_oneshot.h"
5#include "action_util.h"
6
7bool process_oneshot(uint16_t keycode, keyrecord_t *record) {
8#ifndef NO_ACTION_ONESHOT
9 if (record->event.pressed) {
10 switch (keycode) {
11 case QK_ONE_SHOT_TOGGLE:
12 oneshot_toggle();
13 return false;
14 case QK_ONE_SHOT_ON:
15 oneshot_enable();
16 return false;
17 case QK_ONE_SHOT_OFF:
18 oneshot_disable();
19 return false;
20 }
21 }
22#endif
23
24 return true;
25}