From f5b74918837bacc5aaa98641428309380d591707 Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Mon, 10 Apr 2023 00:37:31 +0800 Subject: Add swap hands toggle functions (#20381) --- quantum/action.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'quantum/action.h') diff --git a/quantum/action.h b/quantum/action.h index 8ef6db6781..2a2c294c5a 100644 --- a/quantum/action.h +++ b/quantum/action.h @@ -84,6 +84,18 @@ typedef uint32_t swap_state_row_t; # error "MATRIX_COLS: invalid value" # endif +/** + * @brief Enable swap hands + */ +void swap_hands_on(void); +/** + * @brief Disable swap hands + */ +void swap_hands_off(void); +/** + * @brief Toggle swap hands enable state + */ +void swap_hands_toggle(void); /** * @brief Get the swap hands enable state * @@ -91,6 +103,7 @@ typedef uint32_t swap_state_row_t; * @return false */ bool is_swap_hands_on(void); + void process_hand_swap(keyevent_t *record); #endif -- cgit v1.2.3