summaryrefslogtreecommitdiffstats
path: root/quantum/action.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
committerNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
commitbacec14073b2e897d5a52caf12de5a6a1f7b4078 (patch)
treed4e3e57aac1a829a191831efd2e62c8a43217885 /quantum/action.h
parentd70e9b8659a7fbbd7069fd542bd07e67e04327a1 (diff)
parentb865b9e1706ad28ae4882bd2e0331e98808295fa (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'quantum/action.h')
-rw-r--r--quantum/action.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/quantum/action.h b/quantum/action.h
index 2bc46429b2..8ef6db6781 100644
--- a/quantum/action.h
+++ b/quantum/action.h
@@ -84,6 +84,13 @@ typedef uint32_t swap_state_row_t;
# error "MATRIX_COLS: invalid value"
# endif
+/**
+ * @brief Get the swap hands enable state
+ *
+ * @return true
+ * @return false
+ */
+bool is_swap_hands_on(void);
void process_hand_swap(keyevent_t *record);
#endif
@@ -112,7 +119,19 @@ bool is_tap_action(action_t action);
void process_record_tap_hint(keyrecord_t *record);
#endif
-/* debug */
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// Helpers
+
+#ifdef ACTION_DEBUG
+# include "debug.h"
+# include "print.h"
+# define ac_dprintf(...) dprintf(__VA_ARGS__)
+#else
+# define ac_dprintf(...) \
+ do { \
+ } while (0)
+#endif
+
void debug_event(keyevent_t event);
void debug_record(keyrecord_t record);
void debug_action(action_t action);