diff options
28 files changed, 45 insertions, 42 deletions
diff --git a/docs/feature_swap_hands.md b/docs/feature_swap_hands.md index 42f9e0867..61c66a2c1 100644 --- a/docs/feature_swap_hands.md +++ b/docs/feature_swap_hands.md | |||
@@ -1,6 +1,6 @@ | |||
1 | # Swap-Hands Action | 1 | # Swap-Hands Action |
2 | 2 | ||
3 | The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `ONEHAND_ENABLE` in the Makefile and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd` | 3 | The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `SWAP_HANDS_ENABLE` in the Makefile and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd` |
4 | 4 | ||
5 | ## Configuration | 5 | ## Configuration |
6 | 6 | ||
diff --git a/keyboards/ergo42/ergo42.c b/keyboards/ergo42/ergo42.c index 9954f5c4c..e42dcb226 100644 --- a/keyboards/ergo42/ergo42.c +++ b/keyboards/ergo42/ergo42.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "ergo42.h" | 1 | #include "ergo42.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | 6 | ||
diff --git a/keyboards/ergodone/rules.mk b/keyboards/ergodone/rules.mk index dee7a14e0..6acfaf92e 100644 --- a/keyboards/ergodone/rules.mk +++ b/keyboards/ergodone/rules.mk | |||
@@ -5,7 +5,7 @@ | |||
5 | # | 5 | # |
6 | # make clean = Clean out built project files. | 6 | # make clean = Clean out built project files. |
7 | # | 7 | # |
8 | # That's pretty much all you need. To compile, always go make clean, | 8 | # That's pretty much all you need. To compile, always go make clean, |
9 | # followed by make. | 9 | # followed by make. |
10 | # | 10 | # |
11 | # For advanced users only: | 11 | # For advanced users only: |
@@ -88,7 +88,7 @@ FADING_LED_ENABLE = no # Enable fading backlight | |||
88 | BREATHING_LED_ENABLE = no # Enable breathing backlight | 88 | BREATHING_LED_ENABLE = no # Enable breathing backlight |
89 | LEDMAP_ENABLE = no # Enable LED mapping | 89 | LEDMAP_ENABLE = no # Enable LED mapping |
90 | LEDMAP_IN_EEPROM_ENABLE = no # Read LED mapping from eeprom | 90 | LEDMAP_IN_EEPROM_ENABLE = no # Read LED mapping from eeprom |
91 | ONEHAND_ENABLE = no # Disable Onehand | 91 | SWAP_HANDS_ENABLE = no # Disable Onehand |
92 | RGBLIGHT_ENABLE = no | 92 | RGBLIGHT_ENABLE = no |
93 | MIDI_ENABLE = no | 93 | MIDI_ENABLE = no |
94 | 94 | ||
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c index 5f197cb2d..437411856 100644 --- a/keyboards/ergodox_ez/ergodox_ez.c +++ b/keyboards/ergodox_ez/ergodox_ez.c | |||
@@ -100,7 +100,7 @@ void ergodox_blink_all_leds(void) | |||
100 | mcp23018_status = ergodox_left_leds_update(); | 100 | mcp23018_status = ergodox_left_leds_update(); |
101 | } | 101 | } |
102 | #endif | 102 | #endif |
103 | 103 | ||
104 | //ergodox_led_all_on(); | 104 | //ergodox_led_all_on(); |
105 | //_delay_ms(333); | 105 | //_delay_ms(333); |
106 | ergodox_led_all_off(); | 106 | ergodox_led_all_off(); |
@@ -185,7 +185,7 @@ uint8_t ergodox_left_leds_update(void) { | |||
185 | #endif | 185 | #endif |
186 | 186 | ||
187 | 187 | ||
188 | #ifdef ONEHAND_ENABLE | 188 | #ifdef SWAP_HANDS_ENABLE |
189 | __attribute__ ((weak)) | 189 | __attribute__ ((weak)) |
190 | // swap-hands action needs a matrix to define the swap | 190 | // swap-hands action needs a matrix to define the swap |
191 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 191 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk b/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk index 6ed55e72b..6d20fcf76 100755 --- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk +++ b/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk | |||
@@ -2,7 +2,7 @@ MOUSEKEY_ENABLE = yes # Mouse keys | |||
2 | EXTRAKEY_ENABLE = yes # Audio control and System control | 2 | EXTRAKEY_ENABLE = yes # Audio control and System control |
3 | COMMAND_ENABLE = yes # Commands for debug and configuration | 3 | COMMAND_ENABLE = yes # Commands for debug and configuration |
4 | NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 4 | NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
5 | ONEHAND_ENABLE = yes # Allow swapping hands of keyboard | 5 | SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard |
6 | KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key | 6 | KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key |
7 | TAP_DANCE_ENABLE = yes # Enable the tap dance feature. | 7 | TAP_DANCE_ENABLE = yes # Enable the tap dance feature. |
8 | CONSOLE_ENABLE = yes # Console for debug | 8 | CONSOLE_ENABLE = yes # Console for debug |
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk index 4d2c46108..5ee9d5cb8 100644 --- a/keyboards/ergodox_ez/rules.mk +++ b/keyboards/ergodox_ez/rules.mk | |||
@@ -5,7 +5,7 @@ | |||
5 | # | 5 | # |
6 | # make clean = Clean out built project files. | 6 | # make clean = Clean out built project files. |
7 | # | 7 | # |
8 | # That's pretty much all you need. To compile, always go make clean, | 8 | # That's pretty much all you need. To compile, always go make clean, |
9 | # followed by make. | 9 | # followed by make. |
10 | # | 10 | # |
11 | # For advanced users only: | 11 | # For advanced users only: |
@@ -56,7 +56,7 @@ F_USB = $(F_CPU) | |||
56 | 56 | ||
57 | # Bootloader | 57 | # Bootloader |
58 | # This definition is optional, and if your keyboard supports multiple bootloaders of | 58 | # This definition is optional, and if your keyboard supports multiple bootloaders of |
59 | # different sizes, comment this out, and the correct address will be loaded | 59 | # different sizes, comment this out, and the correct address will be loaded |
60 | # automatically (+60). See bootloader.mk for all options. | 60 | # automatically (+60). See bootloader.mk for all options. |
61 | BOOTLOADER = halfkay | 61 | BOOTLOADER = halfkay |
62 | 62 | ||
@@ -79,9 +79,9 @@ COMMAND_ENABLE = yes # Commands for debug and configuration | |||
79 | CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ | 79 | CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ |
80 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 80 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
81 | UNICODE_ENABLE = yes # Unicode | 81 | UNICODE_ENABLE = yes # Unicode |
82 | ONEHAND_ENABLE = yes # Allow swapping hands of keyboard | 82 | SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard |
83 | SLEEP_LED_ENABLE = no | 83 | SLEEP_LED_ENABLE = no |
84 | API_SYSEX_ENABLE = no | 84 | API_SYSEX_ENABLE = no |
85 | RGBLIGHT_ENABLE = yes | 85 | RGBLIGHT_ENABLE = yes |
86 | 86 | ||
87 | LAYOUTS = ergodox \ No newline at end of file | 87 | LAYOUTS = ergodox |
diff --git a/keyboards/ergodox_infinity/ergodox_infinity.c b/keyboards/ergodox_infinity/ergodox_infinity.c index 87e1b524b..9fda7991f 100644 --- a/keyboards/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/ergodox_infinity/ergodox_infinity.c | |||
@@ -174,7 +174,7 @@ __attribute__ ((weak)) | |||
174 | void ergodox_right_led_3_set(uint8_t n) { | 174 | void ergodox_right_led_3_set(uint8_t n) { |
175 | } | 175 | } |
176 | 176 | ||
177 | #ifdef ONEHAND_ENABLE | 177 | #ifdef SWAP_HANDS_ENABLE |
178 | __attribute__ ((weak)) | 178 | __attribute__ ((weak)) |
179 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 179 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
180 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, | 180 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, |
diff --git a/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk b/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk index 74881c981..2d3597ceb 100644 --- a/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk +++ b/keyboards/ergodox_infinity/keymaps/halfkeyboard/rules.mk | |||
@@ -67,7 +67,7 @@ CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ | |||
67 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 67 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
68 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 68 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
69 | UNICODE_ENABLE = yes # Unicode | 69 | UNICODE_ENABLE = yes # Unicode |
70 | ONEHAND_ENABLE = yes # Allow swapping hands of keyboard | 70 | SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard |
71 | STENO_ENABLE = yes #enable plover steno mode | 71 | STENO_ENABLE = yes #enable plover steno mode |
72 | CUSTOM_MATRIX = yes # Custom matrix file | 72 | CUSTOM_MATRIX = yes # Custom matrix file |
73 | SERIAL_LINK_ENABLE = yes | 73 | SERIAL_LINK_ENABLE = yes |
diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk index e1cef51c1..c243c258b 100644 --- a/keyboards/ergodox_infinity/rules.mk +++ b/keyboards/ergodox_infinity/rules.mk | |||
@@ -67,7 +67,7 @@ CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ | |||
67 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 67 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
68 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 68 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
69 | UNICODE_ENABLE = yes # Unicode | 69 | UNICODE_ENABLE = yes # Unicode |
70 | ONEHAND_ENABLE = yes # Allow swapping hands of keyboard | 70 | SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard |
71 | 71 | ||
72 | CUSTOM_MATRIX = yes # Custom matrix file | 72 | CUSTOM_MATRIX = yes # Custom matrix file |
73 | SERIAL_LINK_ENABLE = yes | 73 | SERIAL_LINK_ENABLE = yes |
@@ -79,11 +79,11 @@ MIDI_ENABLE = no | |||
79 | RGBLIGHT_ENABLE = no | 79 | RGBLIGHT_ENABLE = no |
80 | 80 | ||
81 | LCD_DRIVER = st7565 | 81 | LCD_DRIVER = st7565 |
82 | LCD_WIDTH = 128 | 82 | LCD_WIDTH = 128 |
83 | LCD_HEIGHT = 32 | 83 | LCD_HEIGHT = 32 |
84 | 84 | ||
85 | LED_DRIVER = is31fl3731c | 85 | LED_DRIVER = is31fl3731c |
86 | LED_WIDTH = 7 | 86 | LED_WIDTH = 7 |
87 | LED_HEIGHT = 7 | 87 | LED_HEIGHT = 7 |
88 | 88 | ||
89 | LAYOUTS = ergodox | 89 | LAYOUTS = ergodox |
diff --git a/keyboards/hadron/keymaps/default/rules.mk b/keyboards/hadron/keymaps/default/rules.mk index e24ba04b5..1f3975255 100644 --- a/keyboards/hadron/keymaps/default/rules.mk +++ b/keyboards/hadron/keymaps/default/rules.mk | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | # Build Options | 3 | # Build Options |
4 | # change to "no" to disable the options, or define them in the Makefile in | 4 | # change to "no" to disable the options, or define them in the Makefile in |
5 | # the appropriate keymap folder that will get included automatically | 5 | # the appropriate keymap folder that will get included automatically |
6 | # | 6 | # |
7 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 7 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
16 | UNICODE_ENABLE = no # Unicode | 16 | UNICODE_ENABLE = no # Unicode |
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
19 | ONEHAND_ENABLE = no # Enable one-hand typing | 19 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
20 | 20 | ||
21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/hadron/keymaps/side_numpad/rules.mk b/keyboards/hadron/keymaps/side_numpad/rules.mk index 5cdc186cd..d9fabc1ac 100644 --- a/keyboards/hadron/keymaps/side_numpad/rules.mk +++ b/keyboards/hadron/keymaps/side_numpad/rules.mk | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | # Build Options | 3 | # Build Options |
4 | # change to "no" to disable the options, or define them in the Makefile in | 4 | # change to "no" to disable the options, or define them in the Makefile in |
5 | # the appropriate keymap folder that will get included automatically | 5 | # the appropriate keymap folder that will get included automatically |
6 | # | 6 | # |
7 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 7 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
16 | UNICODE_ENABLE = no # Unicode | 16 | UNICODE_ENABLE = no # Unicode |
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
19 | ONEHAND_ENABLE = no # Enable one-hand typing | 19 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
20 | 20 | ||
21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/handwired/dactyl/dactyl.c b/keyboards/handwired/dactyl/dactyl.c index 3f59154fd..abe3d9d60 100644 --- a/keyboards/handwired/dactyl/dactyl.c +++ b/keyboards/handwired/dactyl/dactyl.c | |||
@@ -57,7 +57,7 @@ out: | |||
57 | return mcp23018_status; | 57 | return mcp23018_status; |
58 | } | 58 | } |
59 | 59 | ||
60 | #ifdef ONEHAND_ENABLE | 60 | #ifdef SWAP_HANDS_ENABLE |
61 | __attribute__ ((weak)) | 61 | __attribute__ ((weak)) |
62 | // swap-hands action needs a matrix to define the swap | 62 | // swap-hands action needs a matrix to define the swap |
63 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 63 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
diff --git a/keyboards/handwired/dactyl/rules.mk b/keyboards/handwired/dactyl/rules.mk index 90a29bd2d..dc25f9c3f 100644 --- a/keyboards/handwired/dactyl/rules.mk +++ b/keyboards/handwired/dactyl/rules.mk | |||
@@ -80,7 +80,7 @@ COMMAND_ENABLE = no # Commands for debug and configuration | |||
80 | CUSTOM_MATRIX = yes # Custom matrix file for the Dactyl | 80 | CUSTOM_MATRIX = yes # Custom matrix file for the Dactyl |
81 | NKRO_ENABLE = yes # USB Nkey Rollover | 81 | NKRO_ENABLE = yes # USB Nkey Rollover |
82 | UNICODE_ENABLE = yes # Unicode | 82 | UNICODE_ENABLE = yes # Unicode |
83 | ONEHAND_ENABLE = yes # Allow swapping hands of keyboard | 83 | SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard |
84 | SLEEP_LED_ENABLE = no | 84 | SLEEP_LED_ENABLE = no |
85 | API_SYSEX_ENABLE = no | 85 | API_SYSEX_ENABLE = no |
86 | RGBLIGHT_ENABLE = no | 86 | RGBLIGHT_ENABLE = no |
diff --git a/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk b/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk index 67a0ff2d8..3f8fd5dc6 100644 --- a/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk +++ b/keyboards/helix/rev1/keymaps/OLED_sample/rules.mk | |||
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
18 | ONEHAND_ENABLE = no # Enable one-hand typing | 18 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
19 | 19 | ||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/helix/rev2/keymaps/default/rules.mk b/keyboards/helix/rev2/keymaps/default/rules.mk index f4d345435..dc4187c08 100644 --- a/keyboards/helix/rev2/keymaps/default/rules.mk +++ b/keyboards/helix/rev2/keymaps/default/rules.mk | |||
@@ -17,7 +17,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | |||
17 | # Helix keyboard : see ./config.h: RGBLED_NUM 6 or 32 | 17 | # Helix keyboard : see ./config.h: RGBLED_NUM 6 or 32 |
18 | # Helix keyboard : RGBLIGHT_ENABLE = no or yes | 18 | # Helix keyboard : RGBLIGHT_ENABLE = no or yes |
19 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 19 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
20 | ONEHAND_ENABLE = no # Enable one-hand typing | 20 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
21 | 21 | ||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/lets_split/keymaps/OLED_sample/rules.mk b/keyboards/lets_split/keymaps/OLED_sample/rules.mk index 90616d1f1..874d09eab 100644 --- a/keyboards/lets_split/keymaps/OLED_sample/rules.mk +++ b/keyboards/lets_split/keymaps/OLED_sample/rules.mk | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | # Build Options | 2 | # Build Options |
3 | # change to "no" to disable the options, or define them in the Makefile in | 3 | # change to "no" to disable the options, or define them in the Makefile in |
4 | # the appropriate keymap folder that will get included automatically | 4 | # the appropriate keymap folder that will get included automatically |
5 | # | 5 | # |
6 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 6 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
18 | ONEHAND_ENABLE = no # Enable one-hand typing | 18 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
19 | 19 | ||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/rules.mk b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk index d5e58dad4..2261a848a 100644 --- a/keyboards/lets_split/keymaps/heartrobotninja/rules.mk +++ b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk | |||
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
17 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 17 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
18 | ONEHAND_ENABLE = no # Enable one-hand typing | 18 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
19 | 19 | ||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/lets_split/keymaps/mjt/rules.mk b/keyboards/lets_split/keymaps/mjt/rules.mk index 90616d1f1..874d09eab 100644 --- a/keyboards/lets_split/keymaps/mjt/rules.mk +++ b/keyboards/lets_split/keymaps/mjt/rules.mk | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | # Build Options | 2 | # Build Options |
3 | # change to "no" to disable the options, or define them in the Makefile in | 3 | # change to "no" to disable the options, or define them in the Makefile in |
4 | # the appropriate keymap folder that will get included automatically | 4 | # the appropriate keymap folder that will get included automatically |
5 | # | 5 | # |
6 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 6 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
@@ -15,7 +15,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
18 | ONEHAND_ENABLE = no # Enable one-hand typing | 18 | SWAP_HANDS_ENABLE = no # Enable one-hand typing |
19 | 19 | ||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
diff --git a/keyboards/lets_split/lets_split.c b/keyboards/lets_split/lets_split.c index 914cf2698..c400ab7bb 100644 --- a/keyboards/lets_split/lets_split.c +++ b/keyboards/lets_split/lets_split.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "lets_split.h" | 1 | #include "lets_split.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | 6 | ||
diff --git a/keyboards/levinson/levinson.c b/keyboards/levinson/levinson.c index 2c993daec..95f3fe9ef 100644 --- a/keyboards/levinson/levinson.c +++ b/keyboards/levinson/levinson.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "levinson.h" | 1 | #include "levinson.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | 6 | ||
diff --git a/keyboards/mitosis/mitosis.c b/keyboards/mitosis/mitosis.c index 61a26c662..f965f2a04 100644 --- a/keyboards/mitosis/mitosis.c +++ b/keyboards/mitosis/mitosis.c | |||
@@ -30,7 +30,7 @@ void led_set_kb(uint8_t usb_led) { | |||
30 | 30 | ||
31 | } | 31 | } |
32 | 32 | ||
33 | #ifdef ONEHAND_ENABLE | 33 | #ifdef SWAP_HANDS_ENABLE |
34 | __attribute__ ((weak)) | 34 | __attribute__ ((weak)) |
35 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 35 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
36 | {{9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, | 36 | {{9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, |
diff --git a/keyboards/niu_mini/niu_mini.c b/keyboards/niu_mini/niu_mini.c index f1607df55..60df62b9e 100644 --- a/keyboards/niu_mini/niu_mini.c +++ b/keyboards/niu_mini/niu_mini.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "niu_mini.h" | 1 | #include "niu_mini.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, | 6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, |
diff --git a/keyboards/planck/keymaps/experimental/rules.mk b/keyboards/planck/keymaps/experimental/rules.mk index 29108e522..b135dfca0 100644 --- a/keyboards/planck/keymaps/experimental/rules.mk +++ b/keyboards/planck/keymaps/experimental/rules.mk | |||
@@ -16,7 +16,7 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
16 | UNICODE_ENABLE = no # Unicode | 16 | UNICODE_ENABLE = no # Unicode |
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
19 | ONEHAND_ENABLE = yes # Enable one-hand typing | 19 | SWAP_HANDS_ENABLE = yes # Enable one-hand typing |
20 | STENO_ENABLE = yes # Enable TX Bolt protocol for Stenography, requires VIRTSER and may not work with mouse keys | 20 | STENO_ENABLE = yes # Enable TX Bolt protocol for Stenography, requires VIRTSER and may not work with mouse keys |
21 | 21 | ||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c index 1d2f91bc5..6ac789cbe 100644 --- a/keyboards/planck/planck.c +++ b/keyboards/planck/planck.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "planck.h" | 1 | #include "planck.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, | 6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, |
diff --git a/keyboards/preonic/preonic.c b/keyboards/preonic/preonic.c index d9c119b8d..637a73ab8 100644 --- a/keyboards/preonic/preonic.c +++ b/keyboards/preonic/preonic.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "preonic.h" | 1 | #include "preonic.h" |
2 | 2 | ||
3 | #ifdef ONEHAND_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
4 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 5 | const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, | 6 | {{11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, |
diff --git a/tmk_core/common.mk b/tmk_core/common.mk index 75b810d98..f12073525 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk | |||
@@ -25,7 +25,7 @@ TMK_COMMON_SRC += $(COMMON_DIR)/host.c \ | |||
25 | 25 | ||
26 | ifeq ($(PLATFORM),AVR) | 26 | ifeq ($(PLATFORM),AVR) |
27 | TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/xprintf.S | 27 | TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/xprintf.S |
28 | endif | 28 | endif |
29 | 29 | ||
30 | ifeq ($(PLATFORM),CHIBIOS) | 30 | ifeq ($(PLATFORM),CHIBIOS) |
31 | TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/printf.c | 31 | TMK_COMMON_SRC += $(PLATFORM_COMMON_DIR)/printf.c |
@@ -124,7 +124,10 @@ ifeq ($(strip $(BLUETOOTH)), RN42) | |||
124 | endif | 124 | endif |
125 | 125 | ||
126 | ifeq ($(strip $(ONEHAND_ENABLE)), yes) | 126 | ifeq ($(strip $(ONEHAND_ENABLE)), yes) |
127 | TMK_COMMON_DEFS += -DONEHAND_ENABLE | 127 | SWAP_HANDS_ENABLE = yes # backwards compatibility |
128 | endif | ||
129 | ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes) | ||
130 | TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE | ||
128 | endif | 131 | endif |
129 | 132 | ||
130 | ifeq ($(strip $(NO_USB_STARTUP_CHECK)), yes) | 133 | ifeq ($(strip $(NO_USB_STARTUP_CHECK)), yes) |
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index dd3a5b3ee..947e5118f 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
@@ -64,7 +64,7 @@ void action_exec(keyevent_t event) | |||
64 | fauxclicky_check(); | 64 | fauxclicky_check(); |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #ifdef ONEHAND_ENABLE | 67 | #ifdef SWAP_HANDS_ENABLE |
68 | if (!IS_NOEVENT(event)) { | 68 | if (!IS_NOEVENT(event)) { |
69 | process_hand_swap(&event); | 69 | process_hand_swap(&event); |
70 | } | 70 | } |
@@ -91,7 +91,7 @@ void action_exec(keyevent_t event) | |||
91 | #endif | 91 | #endif |
92 | } | 92 | } |
93 | 93 | ||
94 | #ifdef ONEHAND_ENABLE | 94 | #ifdef SWAP_HANDS_ENABLE |
95 | bool swap_hands = false; | 95 | bool swap_hands = false; |
96 | 96 | ||
97 | void process_hand_swap(keyevent_t *event) { | 97 | void process_hand_swap(keyevent_t *event) { |
@@ -524,7 +524,7 @@ void process_action(keyrecord_t *record, action_t action) | |||
524 | #endif | 524 | #endif |
525 | case ACT_COMMAND: | 525 | case ACT_COMMAND: |
526 | break; | 526 | break; |
527 | #ifdef ONEHAND_ENABLE | 527 | #ifdef SWAP_HANDS_ENABLE |
528 | case ACT_SWAP_HANDS: | 528 | case ACT_SWAP_HANDS: |
529 | switch (action.swap.code) { | 529 | switch (action.swap.code) { |
530 | case OP_SH_TOGGLE: | 530 | case OP_SH_TOGGLE: |
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h index b9bdfe642..87027dede 100644 --- a/tmk_core/common/action.h +++ b/tmk_core/common/action.h | |||
@@ -67,7 +67,7 @@ extern bool disable_action_cache; | |||
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | /* Code for handling one-handed key modifiers. */ | 69 | /* Code for handling one-handed key modifiers. */ |
70 | #ifdef ONEHAND_ENABLE | 70 | #ifdef SWAP_HANDS_ENABLE |
71 | extern bool swap_hands; | 71 | extern bool swap_hands; |
72 | extern const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS]; | 72 | extern const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS]; |
73 | #if (MATRIX_COLS <= 8) | 73 | #if (MATRIX_COLS <= 8) |