diff options
| author | Joel Challis <git@zvecr.com> | 2023-02-22 22:49:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 09:49:07 +1100 |
| commit | 961f0b7b2de54f988daf4ce7b791f91a33e55612 (patch) | |
| tree | a96aecd70d8f1341c81dc12d79cbb59a94803241 /users | |
| parent | ea772468650f7c79a9919a4770d371839985bef0 (diff) | |
Reallocate SAFE_RANGE (#19909)
Diffstat (limited to 'users')
| -rw-r--r-- | users/drashna/keyrecords/process_records.h | 10 | ||||
| -rw-r--r-- | users/drashna/pointing/pointing.c | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/users/drashna/keyrecords/process_records.h b/users/drashna/keyrecords/process_records.h index 0acd7e010d..5c8fe889e4 100644 --- a/users/drashna/keyrecords/process_records.h +++ b/users/drashna/keyrecords/process_records.h | |||
| @@ -4,16 +4,8 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | #include "drashna.h" | 5 | #include "drashna.h" |
| 6 | 6 | ||
| 7 | #if defined(KEYBOARD_handwired_tractyl_manuform) && defined(POINTING_DEVICE_ENABLE) | ||
| 8 | # define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE | ||
| 9 | #elif defined(KEYBOARD_bastardkb_charybdis) | ||
| 10 | # define PLACEHOLDER_SAFE_RANGE CHARYBDIS_SAFE_RANGE | ||
| 11 | #else | ||
| 12 | # define PLACEHOLDER_SAFE_RANGE SAFE_RANGE | ||
| 13 | #endif | ||
| 14 | |||
| 15 | enum userspace_custom_keycodes { | 7 | enum userspace_custom_keycodes { |
| 16 | VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info | 8 | VRSN = SAFE_RANGE, // Prints QMK Firmware and board info |
| 17 | KC_QWERTY, // Sets default layer to QWERTY | 9 | KC_QWERTY, // Sets default layer to QWERTY |
| 18 | FIRST_DEFAULT_LAYER_KEYCODE = KC_QWERTY, // Sets default layer to QWERTY | 10 | FIRST_DEFAULT_LAYER_KEYCODE = KC_QWERTY, // Sets default layer to QWERTY |
| 19 | KC_COLEMAK_DH, // Sets default layer to COLEMAK | 11 | KC_COLEMAK_DH, // Sets default layer to COLEMAK |
diff --git a/users/drashna/pointing/pointing.c b/users/drashna/pointing/pointing.c index 1b64502ed3..a74c9fd41e 100644 --- a/users/drashna/pointing/pointing.c +++ b/users/drashna/pointing/pointing.c | |||
| @@ -82,9 +82,9 @@ bool is_mouse_record_user(uint16_t keycode, keyrecord_t* record) { | |||
| 82 | # if defined(KEYBOARD_ploopy) | 82 | # if defined(KEYBOARD_ploopy) |
| 83 | case DPI_CONFIG: | 83 | case DPI_CONFIG: |
| 84 | # elif (defined(KEYBOARD_bastardkb_charybdis) || defined(KEYBOARD_handwired_tractyl_manuform)) && !defined(NO_CHARYBDIS_KEYCODES) | 84 | # elif (defined(KEYBOARD_bastardkb_charybdis) || defined(KEYBOARD_handwired_tractyl_manuform)) && !defined(NO_CHARYBDIS_KEYCODES) |
| 85 | case SAFE_RANGE ...(CHARYBDIS_SAFE_RANGE - 1): | 85 | case QK_KB ... QK_KB_MAX: |
| 86 | # elif (defined(KEYBOARD_bastardkb_dilemma) && !defined(NO_DILEMMA_KEYCODES)) | 86 | # elif (defined(KEYBOARD_bastardkb_dilemma) && !defined(NO_DILEMMA_KEYCODES)) |
| 87 | case SAFE_RANGE ...(DILEMMA_SAFE_RANGE - 1): | 87 | case QK_KB ... QK_KB_MAX: |
| 88 | # endif | 88 | # endif |
| 89 | case KC_ACCEL: | 89 | case KC_ACCEL: |
| 90 | return true; | 90 | return true; |
