Remove ONEHAND_ENABLE (#13920)
This commit is contained in:
parent
2617ac6041
commit
7c691d82bf
5 changed files with 3 additions and 7 deletions
|
@ -2,7 +2,7 @@ MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
ONEHAND_ENABLE = yes # Allow swapping hands of keyboard
|
SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard
|
||||||
KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key
|
KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key
|
||||||
TAP_DANCE_ENABLE = yes # Enable the tap dance feature.
|
TAP_DANCE_ENABLE = yes # Enable the tap dance feature.
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
|
|
@ -15,7 +15,7 @@ void matrix_init_kb(void) {
|
||||||
led_init();
|
led_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ONEHAND_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
{{13, 0}, {12, 0}, {11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
|
{{13, 0}, {12, 0}, {11, 0}, {10, 0}, {9, 0}, {8, 0}, {7, 0}, {6, 0}, {5, 0}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#ifdef ONEHAND_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,6 @@ OTHER_OPTION_NAMES = \
|
||||||
KEYLOGGER_ENABLE \
|
KEYLOGGER_ENABLE \
|
||||||
LCD_BACKLIGHT_ENABLE \
|
LCD_BACKLIGHT_ENABLE \
|
||||||
MACROS_ENABLED \
|
MACROS_ENABLED \
|
||||||
ONEHAND_ENABLE \
|
|
||||||
PS2_MOUSE_ENABLE \
|
PS2_MOUSE_ENABLE \
|
||||||
RAW_ENABLE \
|
RAW_ENABLE \
|
||||||
SWAP_HANDS_ENABLE \
|
SWAP_HANDS_ENABLE \
|
||||||
|
|
|
@ -98,9 +98,6 @@ ifeq ($(strip $(BLUETOOTH)), RN42)
|
||||||
TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK
|
TMK_COMMON_DEFS += -DNO_USB_STARTUP_CHECK
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(ONEHAND_ENABLE)), yes)
|
|
||||||
SWAP_HANDS_ENABLE = yes # backwards compatibility
|
|
||||||
endif
|
|
||||||
ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes)
|
ifeq ($(strip $(SWAP_HANDS_ENABLE)), yes)
|
||||||
TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE
|
TMK_COMMON_DEFS += -DSWAP_HANDS_ENABLE
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue