diff options
| author | tmk <nobody@nowhere> | 2013-01-27 02:42:48 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-01-27 02:42:48 +0900 |
| commit | ef873791bdbff5cc6971705544e120c69ca94212 (patch) | |
| tree | 653a1959260642ea6cb31bf9c92aaa75392b6c39 /common/action.h | |
| parent | d8dddf9f25181e29e3fb82250833a00a11921452 (diff) | |
| download | qmk_firmware-ef873791bdbff5cc6971705544e120c69ca94212.tar.gz qmk_firmware-ef873791bdbff5cc6971705544e120c69ca94212.zip | |
New tapping logic.
Diffstat (limited to 'common/action.h')
| -rw-r--r-- | common/action.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/action.h b/common/action.h index 9aa1d78e9..327a009ef 100644 --- a/common/action.h +++ b/common/action.h | |||
| @@ -19,7 +19,7 @@ void clear_keyboard(void); | |||
| 19 | void clear_keyboard_but_mods(void); | 19 | void clear_keyboard_but_mods(void); |
| 20 | bool sending_anykey(void); | 20 | bool sending_anykey(void); |
| 21 | void layer_switch(uint8_t new_layer); | 21 | void layer_switch(uint8_t new_layer); |
| 22 | bool is_tap_key(keyevent_t event); | 22 | bool is_tap_key(key_t key); |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | 25 | ||
| @@ -197,11 +197,9 @@ enum stroke_cmd { | |||
| 197 | STROKE_ALLUP, /* release all keys in reverse order */ | 197 | STROKE_ALLUP, /* release all keys in reverse order */ |
| 198 | }; | 198 | }; |
| 199 | 199 | ||
| 200 | // TODO: not needed? | ||
| 201 | typedef struct { | 200 | typedef struct { |
| 202 | keyevent_t event; | 201 | keyevent_t event; |
| 203 | action_t action; | 202 | uint8_t tap_count; |
| 204 | uint8_t mods; | ||
| 205 | } keyrecord_t; | 203 | } keyrecord_t; |
| 206 | 204 | ||
| 207 | /* action function */ | 205 | /* action function */ |
