diff options
author | tmk <nobody@nowhere> | 2013-03-05 02:42:28 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-03-05 02:42:28 +0900 |
commit | 1aa067e5414873559f59e310f38bb43e8803a45f (patch) | |
tree | 7dcf57fd127ae32e1828a6e28a60dbcc5220c56c /common/action.c | |
parent | 083c75816fbad6bcbbc268eb77e5011d2d16656b (diff) | |
download | firmware-1aa067e5414873559f59e310f38bb43e8803a45f.tar.gz firmware-1aa067e5414873559f59e310f38bb43e8803a45f.tar.bz2 firmware-1aa067e5414873559f59e310f38bb43e8803a45f.zip |
Clean action.h and add keymap doc
Diffstat (limited to 'common/action.c')
-rw-r--r-- | common/action.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/action.c b/common/action.c index 7ca481fba..15e125a3e 100644 --- a/common/action.c +++ b/common/action.c @@ -360,6 +360,7 @@ static void process_action(keyrecord_t *record) case OP_RESET: switch (action.layer.val & 0x03) { case 0: + // NOTE: reserved overlay_clear(); keymap_clear(); break; @@ -379,6 +380,7 @@ static void process_action(keyrecord_t *record) overlay_clear(); keymap_clear(); break; + /* NOTE: 4-7 rserved */ } break; /* Keymap Reset default layer */ @@ -519,6 +521,7 @@ static void process_action(keyrecord_t *record) // Overlay Invert bit4 case OP_INV4 | 0: if (action.layer.val == 0) { + // NOTE: reserved for future use overlay_clear(); } else { overlay_set(overlay_stat ^ action.layer.val); @@ -526,6 +529,7 @@ static void process_action(keyrecord_t *record) break; case OP_INV4 | 1: if (action.layer.val == 0) { + // on pressed if (event.pressed) overlay_clear(); } else { overlay_set(overlay_stat ^ action.layer.val<<4); @@ -533,6 +537,7 @@ static void process_action(keyrecord_t *record) break; case OP_INV4 | 2: if (action.layer.val == 0) { + // on released if (!event.pressed) overlay_clear(); } else { overlay_set(overlay_stat ^ action.layer.val<<8); @@ -540,6 +545,7 @@ static void process_action(keyrecord_t *record) break; case OP_INV4 | 3: if (action.layer.val == 0) { + // on both overlay_clear(); } else { overlay_set(overlay_stat ^ action.layer.val<<12); |