summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-02 02:53:47 +0200
committerJack Humbert <jack.humb@gmail.com>2018-10-02 02:53:47 +0200
commit26f4e7031a643ce2760ae7b6df3bd2c79710451a (patch)
treeb678c4f87a6060c62b10a0bbee53dd70a771dfe4 /tmk_core
parente885c793bcffcba03e18e93e41120b21cdfb6b75 (diff)
downloadqmk_firmware-26f4e7031a643ce2760ae7b6df3bd2c79710451a.tar.gz
qmk_firmware-26f4e7031a643ce2760ae7b6df3bd2c79710451a.tar.xz
Add tap_code function (#3784)
* Add tap_code * formatting * Doc clarification * Rename variable to make more consistent
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/action.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index 0322c73ed..833febe9c 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -88,6 +88,7 @@ void process_record(keyrecord_t *record);
void process_action(keyrecord_t *record, action_t action);
void register_code(uint8_t code);
void unregister_code(uint8_t code);
+inline void tap_code(uint8_t code) { register_code(code); unregister_code(code); }
void register_mods(uint8_t mods);
void unregister_mods(uint8_t mods);
//void set_mods(uint8_t mods);