]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - common/action.h
New tapping logic.
[qmk_firmware.git] / common / action.h
index 9aa1d78e94010c1aa68679c97afaf7bef9b043a6..327a009ef9a0ba599f35df3e47fdde535d6bb4b2 100644 (file)
@@ -19,7 +19,7 @@ void clear_keyboard(void);
 void clear_keyboard_but_mods(void);
 bool sending_anykey(void);
 void layer_switch(uint8_t new_layer);
-bool is_tap_key(keyevent_t event);
+bool is_tap_key(key_t key);
 
 
 
@@ -197,11 +197,9 @@ enum stroke_cmd {
     STROKE_ALLUP, /* release all keys in reverse order */
 };
 
-// TODO: not needed?
 typedef struct {
     keyevent_t  event;
-    action_t    action;
-    uint8_t     mods;
+    uint8_t     tap_count;
 } keyrecord_t;
 
 /* action function */