aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action_util.h
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2017-06-19 14:04:19 -0400
committerGravatar GitHub <noreply@github.com>2017-06-19 14:04:19 -0400
commite951317acbad8ef67a9da13b657e13e6c1d27e1d (patch)
treea9c616a4a7d91eaf38bef570c9487493ca2b2c2e /tmk_core/common/action_util.h
parent621ae42a6cb9f96b8c02a0094b36daf125c4e6ca (diff)
parent1aa0be4cf1d00f852150e2b2ed5e4c151aeeef3a (diff)
downloadqmk_firmware-e951317acbad8ef67a9da13b657e13e6c1d27e1d.tar.gz
Merge pull request #1409 from fredizzimo/full_unit_test
Take first baby steps towards testing the whole QMK
Diffstat (limited to 'tmk_core/common/action_util.h')
-rw-r--r--tmk_core/common/action_util.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/tmk_core/common/action_util.h b/tmk_core/common/action_util.h
index dd0c4c2bf..345893151 100644
--- a/tmk_core/common/action_util.h
+++ b/tmk_core/common/action_util.h
@@ -29,9 +29,17 @@ extern report_keyboard_t *keyboard_report;
void send_keyboard_report(void);
/* key */
-void add_key(uint8_t key);
-void del_key(uint8_t key);
-void clear_keys(void);
+inline void add_key(uint8_t key) {
+ add_key_to_report(keyboard_report, key);
+}
+
+inline void del_key(uint8_t key) {
+ del_key_from_report(keyboard_report, key);
+}
+
+inline void clear_keys(void) {
+ clear_keys_from_report(keyboard_report);
+}
/* modifier */
uint8_t get_mods(void);
@@ -82,9 +90,7 @@ uint8_t get_oneshot_layer_state(void);
bool has_oneshot_layer_timed_out(void);
/* inspect */
-uint8_t has_anykey(void);
uint8_t has_anymod(void);
-uint8_t get_first_key(void);
#ifdef __cplusplus
}