summaryrefslogtreecommitdiff
path: root/quantum/action.c
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-12-17 15:06:27 +0100
committerGitHub <noreply@github.com>2022-12-17 14:06:27 +0000
commit85984902cfcfd852daf335f67cb97d6520531def (patch)
tree464ca8c4c1a4bb14e812fcd4b4aad5facd0ee2ea /quantum/action.c
parentdedc54a328ab900f47da8478bd9c6b7d14891e15 (diff)
Introduce IS_EVENT instead of !IS_NOEVENT (#19366)
Diffstat (limited to 'quantum/action.c')
-rw-r--r--quantum/action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/action.c b/quantum/action.c
index 2634dff18c..f6fbb999c8 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -70,7 +70,7 @@ __attribute__((weak)) bool pre_process_record_quantum(keyrecord_t *record) {
* FIXME: Needs documentation.
*/
void action_exec(keyevent_t event) {
- if (!IS_NOEVENT(event)) {
+ if (IS_EVENT(event)) {
ac_dprintf("\n---- action_exec: start -----\n");
ac_dprintf("EVENT: ");
debug_event(event);
@@ -87,7 +87,7 @@ void action_exec(keyevent_t event) {
#ifdef SWAP_HANDS_ENABLE
// Swap hands handles both keys and encoders, if ENCODER_MAP_ENABLE is defined.
- if (!IS_NOEVENT(event)) {
+ if (IS_EVENT(event)) {
process_hand_swap(&event);
}
#endif
@@ -125,7 +125,7 @@ void action_exec(keyevent_t event) {
if (IS_NOEVENT(record.event) || pre_process_record_quantum(&record)) {
process_record(&record);
}
- if (!IS_NOEVENT(record.event)) {
+ if (IS_EVENT(record.event)) {
ac_dprintf("processed: ");
debug_record(record);
dprintln();