diff options
author | Drashna Jaelre <[email protected]> | 2021-09-08 16:52:43 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-08 16:52:43 -0700 |
commit | 4294aa0f1ee546c74a72bad3e556d7ee4e020a88 (patch) | |
tree | 1e7bf4d90c9f154f333985cc22103a361d4dc545 /keyboards/handwired/tractyl_manuform/5x6_right/keymaps | |
parent | 8f8411a98a60ffe9e8410e892bff946d9122d3a9 (diff) | |
download | qmk_firmware-4294aa0f1ee546c74a72bad3e556d7ee4e020a88.tar.gz qmk_firmware-4294aa0f1ee546c74a72bad3e556d7ee4e020a88.zip |
[Keyboard] Tractyl Manuform - configuration updates (#14314)
* [Keyboard] Tractyl Manuform - configuration updates
* Update readmes
* Add more details
* Fix issues with encoder pins
* Additional fixes for pin config
* Fix up some comments
Diffstat (limited to 'keyboards/handwired/tractyl_manuform/5x6_right/keymaps')
-rw-r--r-- | keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c | 7 | ||||
-rw-r--r-- | keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/rules.mk | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c index ac4999161b..81de8b2894 100644 --- a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c +++ b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/keymap.c @@ -142,8 +142,14 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { [_LOWER] = { { RGB_MOD, RGB_RMOD}, { RGB_HUD, RGB_HUI } }, [_ADJUST] = { { CK_DOWN, CK_UP }, { _______, _______ } }, }; +// clang-format on #else bool encoder_update_user(uint8_t index, bool clockwise) { +# ifdef SWAP_HANDS_ENABLE + if (swap_hands) { + index ^= 1; + } +# endif if (index == 0) { tap_code_delay(clockwise ? KC_VOLD : KC_VOLU, 5); } else if (index == 1) { @@ -152,7 +158,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) { return false; } #endif -// clang-format on #ifdef POINTING_DEVICE_ENABLE static uint16_t mouse_timer = 0; diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/rules.mk b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/rules.mk index b123ce1a85..9b9032837e 100644 --- a/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/rules.mk +++ b/keyboards/handwired/tractyl_manuform/5x6_right/keymaps/drashna/rules.mk @@ -5,7 +5,7 @@ HAPTIC_ENABLE = no COMMAND_ENABLE = no TAP_DANCE_ENABLE = yes UNICODE_ENABLE = yes -OLED_ENABLE = yes +OLED_ENABLE = yes WPM_ENABLE = yes ENCODER_ENABLE = yes ENCODER_MAP_ENABLE = yes |