diff options
author | Albert Y <[email protected]> | 2023-04-10 00:37:31 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-09 09:37:31 -0700 |
commit | f5b74918837bacc5aaa98641428309380d591707 (patch) | |
tree | 54e452545a995599c9962515bd9838f78455fe45 /quantum/action.c | |
parent | 5d6d9594212073ca52b80a1a949510187af47b13 (diff) | |
download | qmk_firmware-f5b74918837bacc5aaa98641428309380d591707.tar.gz qmk_firmware-f5b74918837bacc5aaa98641428309380d591707.zip |
Add swap hands toggle functions (#20381)
Diffstat (limited to 'quantum/action.c')
-rw-r--r-- | quantum/action.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |