diff options
author | tmk <nobody@nowhere> | 2013-10-04 03:30:09 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-10-04 16:04:31 +0900 |
commit | d52d554360d3bf06189bfd4f386fa99348d8a0a8 (patch) | |
tree | b05d27552402f371e61aa0f29906a60c87e213ad /common/action_oneshot.c | |
parent | cb434cfebc607db15b52a42adae6423bd40f1f98 (diff) | |
download | qmk_firmware-d52d554360d3bf06189bfd4f386fa99348d8a0a8.tar.gz qmk_firmware-d52d554360d3bf06189bfd4f386fa99348d8a0a8.zip |
Fix mod stuck of MODS_KEY when leaving layer #62
- Add action_util.c and remove action_oneshot.c
- Add oneshot_mods for MODS_ONESHOT
- Add weak_mods for MODS_KEY and MACRO
- weak_mods is cleared when layer switching
Diffstat (limited to 'common/action_oneshot.c')
-rw-r--r-- | common/action_oneshot.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/common/action_oneshot.c b/common/action_oneshot.c deleted file mode 100644 index d34f44b5ab..0000000000 --- a/common/action_oneshot.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "action_oneshot.h" - - -#ifndef NO_ACTION_ONESHOT -oneshot_state_t oneshot_state; - -void oneshot_start(uint8_t mods) -{ - oneshot_state.mods = mods; -} - -void oneshot_cancel(void) -{ - oneshot_state.mods = 0; -} - -void oneshot_toggle(void) -{ - oneshot_state.disabled = !oneshot_state.disabled; -} -#endif |