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_code.h | |
| 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_code.h')
| -rw-r--r-- | common/action_code.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/action_code.h b/common/action_code.h index b2a7f2b4f..c153838f2 100644 --- a/common/action_code.h +++ b/common/action_code.h | |||
| @@ -29,13 +29,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 29 | * 000r|0000|0000 0001 Transparent code | 29 | * 000r|0000|0000 0001 Transparent code |
| 30 | * 000r|0000| keycode Key | 30 | * 000r|0000| keycode Key |
| 31 | * 000r|mods|0000 0000 Modifiers | 31 | * 000r|mods|0000 0000 Modifiers |
| 32 | * 000r|mods| keycode Key and Modifiers | 32 | * 000r|mods| keycode Modifiers+Key(Modified key) |
| 33 | * r: Left/Right flag(Left:0, Right:1) | 33 | * r: Left/Right flag(Left:0, Right:1) |
| 34 | * | 34 | * |
| 35 | * ACT_MODS_TAP(001r): | 35 | * ACT_MODS_TAP(001r): |
| 36 | * 001r|mods|0000 0000 Modifiers with OneShot | 36 | * 001r|mods|0000 0000 Modifiers with OneShot |
| 37 | * 001r|mods|0000 00xx (reserved) | 37 | * 001r|mods|0000 00xx (reserved) |
| 38 | * 001r|mods| keycode Modifiers with Tap Key | 38 | * 001r|mods| keycode Modifiers with Tap Key(Dual role) |
| 39 | * | 39 | * |
| 40 | * | 40 | * |
| 41 | * Other Keys(01xx) | 41 | * Other Keys(01xx) |
| @@ -69,7 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 69 | * 1001|oopp|BBBB BBBB 8-bit Bitwise Operation??? | 69 | * 1001|oopp|BBBB BBBB 8-bit Bitwise Operation??? |
| 70 | * | 70 | * |
| 71 | * ACT_LAYER_TAP(101x): | 71 | * ACT_LAYER_TAP(101x): |
| 72 | * 101E|LLLL| keycode Invert with tap key | 72 | * 101E|LLLL| keycode On/Off with tap key |
| 73 | * 101E|LLLL|1110 xxxx Reserved(0xE0-EF) | 73 | * 101E|LLLL|1110 xxxx Reserved(0xE0-EF) |
| 74 | * 101E|LLLL|1111 0000 Invert with tap toggle(0xF0) | 74 | * 101E|LLLL|1111 0000 Invert with tap toggle(0xF0) |
| 75 | * 101E|LLLL|1111 0001 On/Off | 75 | * 101E|LLLL|1111 0001 On/Off |
