summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-02-22 22:49:07 +0000
committerGitHub <noreply@github.com>2023-02-23 09:49:07 +1100
commit961f0b7b2de54f988daf4ce7b791f91a33e55612 (patch)
treea96aecd70d8f1341c81dc12d79cbb59a94803241 /users
parentea772468650f7c79a9919a4770d371839985bef0 (diff)
Reallocate SAFE_RANGE (#19909)
Diffstat (limited to 'users')
-rw-r--r--users/drashna/keyrecords/process_records.h10
-rw-r--r--users/drashna/pointing/pointing.c4
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 @@
#pragma once
#include "drashna.h"
-#if defined(KEYBOARD_handwired_tractyl_manuform) && defined(POINTING_DEVICE_ENABLE)
-# define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
-#elif defined(KEYBOARD_bastardkb_charybdis)
-# define PLACEHOLDER_SAFE_RANGE CHARYBDIS_SAFE_RANGE
-#else
-# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
-#endif
-
enum userspace_custom_keycodes {
- VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
+ VRSN = SAFE_RANGE, // Prints QMK Firmware and board info
KC_QWERTY, // Sets default layer to QWERTY
FIRST_DEFAULT_LAYER_KEYCODE = KC_QWERTY, // Sets default layer to QWERTY
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) {
# if defined(KEYBOARD_ploopy)
case DPI_CONFIG:
# elif (defined(KEYBOARD_bastardkb_charybdis) || defined(KEYBOARD_handwired_tractyl_manuform)) && !defined(NO_CHARYBDIS_KEYCODES)
- case SAFE_RANGE ...(CHARYBDIS_SAFE_RANGE - 1):
+ case QK_KB ... QK_KB_MAX:
# elif (defined(KEYBOARD_bastardkb_dilemma) && !defined(NO_DILEMMA_KEYCODES))
- case SAFE_RANGE ...(DILEMMA_SAFE_RANGE - 1):
+ case QK_KB ... QK_KB_MAX:
# endif
case KC_ACCEL:
return true;