summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/report.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-17 14:19:15 +0200
committerFred Sundvik <fsundvik@gmail.com>2017-06-18 20:22:22 +0200
commit017458a07bda3f4b2604d079ec65ef607a1a1e57 (patch)
treeb9f97f0bd3bae6790e2c406b8dd9fc0e1cbf04e3 /tmk_core/common/report.h
parentc38589d8615ba3ff93736cb02d12b3c8ceb68094 (diff)
downloadqmk_firmware-017458a07bda3f4b2604d079ec65ef607a1a1e57.tar.gz
qmk_firmware-017458a07bda3f4b2604d079ec65ef607a1a1e57.tar.xz
Move functionality from action_util to report
The functions also takes report_kebyoard_t parameters, so that they can be used elsewhere.
Diffstat (limited to 'tmk_core/common/report.h')
-rw-r--r--tmk_core/common/report.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tmk_core/common/report.h b/tmk_core/common/report.h
index 8fb28b6ce..30ce80542 100644
--- a/tmk_core/common/report.h
+++ b/tmk_core/common/report.h
@@ -174,6 +174,16 @@ typedef struct {
(key == KC_WWW_REFRESH ? AC_REFRESH : \
(key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0)))))))))))))))))))))
+uint8_t has_anykey(report_keyboard_t* keyboard_report);
+uint8_t get_first_key(report_keyboard_t* keyboard_report);
+
+void add_key_byte(report_keyboard_t* keyboard_report, uint8_t code);
+void del_key_byte(report_keyboard_t* keyboard_report, uint8_t code);
+#ifdef NKRO_ENABLE
+void add_key_bit(report_keyboard_t* keyboard_report, uint8_t code);
+void del_key_bit(report_keyboard_t* keyboard_report, uint8_t code);
+#endif
+
#ifdef __cplusplus
}
#endif