]> git.gir.st - tmk_keyboard.git/blob - common/action_oneshot.c
Merge branch 'macro_mediakey'(Fix issue #42)
[tmk_keyboard.git] / common / action_oneshot.c
1 #include "action_oneshot.h"
2
3
4 #ifndef NO_ACTION_ONESHOT
5 oneshot_state_t oneshot_state;
6
7 void oneshot_start(uint8_t mods)
8 {
9 oneshot_state.mods = mods;
10 }
11
12 void oneshot_cancel(void)
13 {
14 oneshot_state.mods = 0;
15 }
16
17 void oneshot_toggle(void)
18 {
19 oneshot_state.disabled = !oneshot_state.disabled;
20 }
21 #endif
Imprint / Impressum