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.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'quantum/action.c') diff --git a/quantum/action.c b/quantum/action.c index dadb88e9df..9a6bbcca11 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -165,6 +165,18 @@ void set_swap_hands_state(size_t index, uint8_t *swap_state, bool on) { } } +void swap_hands_on(void) { + swap_hands = true; +} + +void swap_hands_off(void) { + swap_hands = false; +} + +void swap_hands_toggle(void) { + swap_hands = !swap_hands; +} + bool is_swap_hands_on(void) { return swap_hands; } -- cgit v1.2.3