Browse Source

Reallocate SAFE_RANGE (#19909)

pull/19919/head
Joel Challis 1 year ago
committed by GitHub
parent
commit
961f0b7b2d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 31 additions and 132 deletions
  1. +2
    -4
      docs/configurator_default_keymaps.md
  2. +1
    -6
      keyboards/annepro2/annepro2.h
  3. +0
    -10
      keyboards/bajjak/bajjak.h
  4. +1
    -1
      keyboards/bastardkb/charybdis/charybdis.c
  5. +0
    -1
      keyboards/bastardkb/charybdis/charybdis.h
  6. +1
    -16
      keyboards/bastardkb/charybdis/readme.md
  7. +1
    -1
      keyboards/bastardkb/dilemma/dilemma.c
  8. +0
    -1
      keyboards/bastardkb/dilemma/dilemma.h
  9. +1
    -5
      keyboards/clueboard/2x1800/2019/2019.h
  10. +1
    -2
      keyboards/ergodox_ez/ergodox_ez.h
  11. +0
    -4
      keyboards/ergodox_ez/keymaps/default/keymap.c
  12. +1
    -1
      keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c
  13. +1
    -1
      keyboards/ergodox_ez/keymaps/stamm/keymap.c
  14. +2
    -5
      keyboards/ffkeebs/puca/puca.h
  15. +0
    -2
      keyboards/handwired/tractyl_manuform/tractyl_manuform.h
  16. +0
    -1
      keyboards/mechwild/puckbuddy/puckbuddy.h
  17. +1
    -1
      keyboards/moonlander/keymaps/default/keymap.c
  18. +1
    -1
      keyboards/moonlander/keymaps/shahn-neo/keymap.c
  19. +1
    -2
      keyboards/moonlander/moonlander.h
  20. +0
    -5
      keyboards/mxss/keymaps/default/keymap.c
  21. +0
    -1
      keyboards/mxss/mxss_frontled.h
  22. +0
    -4
      keyboards/mxss/readme.md
  23. +0
    -6
      keyboards/mxss/templates/keymap.c
  24. +1
    -1
      keyboards/oddball/oddball.h
  25. +1
    -2
      keyboards/omnikeyish/omnikeyish.h
  26. +0
    -1
      keyboards/orthocode/orthocode.h
  27. +1
    -2
      keyboards/planck/ez/ez.h
  28. +1
    -1
      keyboards/planck/keymaps/charlesrocket/keymap.c
  29. +1
    -1
      keyboards/planck/keymaps/oryx/keymap.c
  30. +0
    -2
      keyboards/ploopyco/mouse/keymaps/default/keymap.c
  31. +0
    -2
      keyboards/ploopyco/mouse/keymaps/drashna/keymap.c
  32. +0
    -1
      keyboards/ploopyco/mouse/mouse.h
  33. +0
    -2
      keyboards/ploopyco/trackball/keymaps/default/keymap.c
  34. +0
    -1
      keyboards/ploopyco/trackball/trackball.h
  35. +0
    -2
      keyboards/ploopyco/trackball_mini/keymaps/default/keymap.c
  36. +1
    -1
      keyboards/ploopyco/trackball_mini/keymaps/drag_scroll/keymap.c
  37. +0
    -1
      keyboards/ploopyco/trackball_mini/trackball_mini.h
  38. +0
    -2
      keyboards/ploopyco/trackball_nano/keymaps/default/keymap.c
  39. +0
    -1
      keyboards/ploopyco/trackball_nano/keymaps/maddie/keymap.c
  40. +1
    -2
      keyboards/ploopyco/trackball_nano/trackball_nano.h
  41. +0
    -2
      keyboards/ploopyco/trackball_thumb/keymaps/default/keymap.c
  42. +0
    -1
      keyboards/ploopyco/trackball_thumb/trackball_thumb.h
  43. +0
    -5
      keyboards/rubi/keymaps/default/keymap.c
  44. +2
    -3
      keyboards/rubi/rubi.h
  45. +1
    -1
      keyboards/terrazzo/terrazzo.h
  46. +1
    -1
      keyboards/v60_type_r/v60_type_r.h
  47. +1
    -1
      keyboards/yushakobo/navpad/navpad_prefs.h
  48. +1
    -1
      quantum/quantum_keycodes.h
  49. +1
    -9
      users/drashna/keyrecords/process_records.h
  50. +2
    -2
      users/drashna/pointing/pointing.c

+ 2
- 4
docs/configurator_default_keymaps.md View File

@ -153,10 +153,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
```c
enum keyboard_keycodes {
CUSTOM_1 = SAFE_RANGE,
CUSTOM_1 = QK_KB_0,
CUSTOM_2,
CUSTOM_3,
NEW_SAFE_RANGE // Important!
};
```
@ -185,8 +184,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
};
```
Note the call to `process_record_user()` at the end. Additionally, users of the keyboard will need to use `NEW_SAFE_RANGE` instead of `SAFE_RANGE` if they wish to add their own custom keycodes at keymap level, beyond what is provided by the keyboard.
Note the call to `process_record_user()` at the end.
## Additional Reading :id=additional-reading


+ 1
- 6
keyboards/annepro2/annepro2.h View File

@ -59,7 +59,7 @@ extern ble_capslock_t ble_capslock;
// clang-format on
enum AP2KeyCodes {
KC_AP2_BT1 = SAFE_RANGE,
KC_AP2_BT1 = QK_KB_0,
KC_AP2_BT2,
KC_AP2_BT3,
KC_AP2_BT4,
@ -76,9 +76,4 @@ enum AP2KeyCodes {
KC_AP_RGB_VAD,
KC_AP_RGB_TOG,
KC_AP_RGB_MOD,
AP2_SAFE_RANGE,
};
#undef SAFE_RANGE
#define SAFE_RANGE AP2_SAFE_RANGE

+ 0
- 10
keyboards/bajjak/bajjak.h View File

@ -117,16 +117,6 @@ inline void bajjak_led_all_set(uint8_t n) {
bajjak_right_led_3_set(n);
}
enum BAJJAK_ez_keycodes {
LED_LEVEL = SAFE_RANGE,
TOGGLE_LAYER_COLOR,
EZ_SAFE_RANGE,
};
#ifndef WEBUSB_ENABLE
# define WEBUSB_PAIR KC_NO
#endif
typedef union {
uint32_t raw;
struct {


+ 1
- 1
keyboards/bastardkb/charybdis/charybdis.c View File

@ -304,7 +304,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
}
# endif // !NO_CHARYBDIS_KEYCODES
# endif // POINTING_DEVICE_ENABLE
if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < CHARYBDIS_SAFE_RANGE) || IS_MOUSEKEY(keycode)) {
if (IS_QK_KB(keycode) || IS_MOUSEKEY(keycode)) {
debug_charybdis_config_to_console(&g_charybdis_config);
}
return true;


+ 0
- 1
keyboards/bastardkb/charybdis/charybdis.h View File

@ -43,7 +43,6 @@ enum charybdis_keycodes {
SNIPING_MODE_TOGGLE,
DRAGSCROLL_MODE,
DRAGSCROLL_MODE_TOGGLE,
CHARYBDIS_SAFE_RANGE,
};
# define DPI_MOD POINTER_DEFAULT_DPI_FORWARD


+ 1
- 16
keyboards/bastardkb/charybdis/readme.md View File

@ -121,7 +121,7 @@ The Charybdis firmware defines a number of keycodes to leverage its features, na
```
#ifndef NO_CHARYBDIS_KEYCODES
enum charybdis_keycodes {
POINTER_DEFAULT_DPI_FORWARD = SAFE_RANGE,
POINTER_DEFAULT_DPI_FORWARD = QK_KB_0,
POINTER_DEFAULT_DPI_REVERSE,
POINTER_SNIPING_DPI_FORWARD,
POINTER_SNIPING_DPI_REVERSE,
@ -129,7 +129,6 @@ enum charybdis_keycodes {
SNIPING_MODE_TOGGLE,
DRAGSCROLL_MODE,
DRAGSCROLL_MODE_TOGGLE,
CHARYBDIS_SAFE_RANGE,
};
#define DPI_MOD POINTER_DEFAULT_DPI_FORWARD
@ -143,20 +142,6 @@ enum charybdis_keycodes {
#endif // !NO_CHARYBDIS_KEYCODES
```
Users extending the keycode set themselves (either in their keymap, or in their userspace) must start at `CHARYBDIS_SAFE_RANGE` to avoid conflicts, _eg._:
```c
enum userspace_keycodes {
#ifndef NO_CHARYBDIS_KEYCODES
MY_FIRST_KEYCODE = CHARYBDIS_SAFE_RANGE,
#else
MY_FIRST_KEYCODE = SAFE_RANGE,
#endif // !NO_CHARYBDIS_KEYCODES
MY_SECOND_KEYCODE,
};
```
To disable the custom keycodes, and reduce binary size, simply add a definition in `config.h`:
```c


+ 1
- 1
keyboards/bastardkb/dilemma/dilemma.c View File

@ -308,7 +308,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
# endif // !NO_DILEMMA_KEYCODES
# endif // POINTING_DEVICE_ENABLE
debug_dilemma_config_to_console(&g_dilemma_config);
if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < DILEMMA_SAFE_RANGE) || IS_MOUSEKEY(keycode)) {
if (IS_QK_KB(keycode) || IS_MOUSEKEY(keycode)) {
debug_dilemma_config_to_console(&g_dilemma_config);
}
return true;


+ 0
- 1
keyboards/bastardkb/dilemma/dilemma.h View File

@ -40,7 +40,6 @@ enum dilemma_keycodes {
SNIPING_MODE_TOGGLE,
DRAGSCROLL_MODE,
DRAGSCROLL_MODE_TOGGLE,
DILEMMA_SAFE_RANGE,
};
# define DPI_MOD POINTER_DEFAULT_DPI_FORWARD


+ 1
- 5
keyboards/clueboard/2x1800/2019/2019.h View File

@ -18,16 +18,12 @@
#include "quantum.h"
enum TWOx1800_keycodes {
ENC_BTN1 = SAFE_RANGE,
ENC_BTN1 = QK_KB_0,
ENC_BTN2,
ENC_BTN3,
ENC_BTN4,
NEW_SAFE_RANGE
};
#undef SAFE_RANGE
#define SAFE_RANGE NEW_SAFE_RANGE
// Encoder update function that returns true/false
bool encoder_update_keymap(uint8_t index, bool clockwise);


+ 1
- 2
keyboards/ergodox_ez/ergodox_ez.h View File

@ -127,9 +127,8 @@ inline void ergodox_led_all_set(uint8_t n) {
}
enum ergodox_ez_keycodes {
LED_LEVEL = SAFE_RANGE,
LED_LEVEL = QK_KB_0,
TOGGLE_LAYER_COLOR,
EZ_SAFE_RANGE,
};
#ifndef WEBUSB_ENABLE


+ 0
- 4
keyboards/ergodox_ez/keymaps/default/keymap.c View File

@ -8,11 +8,7 @@ enum layers {
};
enum custom_keycodes {
#ifdef ORYX_CONFIGURATOR
VRSN = EZ_SAFE_RANGE,
#else
VRSN = SAFE_RANGE,
#endif
};
// clang-format off


+ 1
- 1
keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c View File

@ -27,7 +27,7 @@
#define NO_BSLS_ALT KC_EQUAL
enum custom_keycodes {
RGB_SLD = EZ_SAFE_RANGE,
RGB_SLD = SAFE_RANGE,
MS_WH_UP,
MS_WH_DOWN,
MS_WH_RIGHT,


+ 1
- 1
keyboards/ergodox_ez/keymaps/stamm/keymap.c View File

@ -37,7 +37,7 @@
#define ARROWS MO(_3_ARROW)
enum custom_keycodes {
RGB_SLD = EZ_SAFE_RANGE,
RGB_SLD = SAFE_RANGE,
ALT_TAB,
};


+ 2
- 5
keyboards/ffkeebs/puca/puca.h View File

@ -18,15 +18,12 @@
#include "quantum.h"
/* Keycodes defined here can be used by any keymap. If you wish to
* define additional keycodes for your personal keymap only, assign
* your first custom keycode to `= NEW_SAFE_RANGE`.
/* Keycodes defined here can be used by any keymap.
*
* See `process_record_kb()` in `puca.c`.
*/
enum keyboard_keycodes {
MC_00 = SAFE_RANGE,
NEW_SAFE_RANGE,
MC_00 = QK_KB_0,
};
#define XXX KC_NO


+ 0
- 2
keyboards/handwired/tractyl_manuform/tractyl_manuform.h View File

@ -33,9 +33,7 @@ enum charybdis_keycodes {
SNIPING_MODE_TOGGLE,
DRAGSCROLL_MODE,
DRAGSCROLL_MODE_TOGGLE,
KEYMAP_SAFE_RANGE,
};
# define CHARYBDIS_SAFE_RANGE KEYMAP_SAFE_RANGE
# define DPI_MOD POINTER_DEFAULT_DPI_FORWARD
# define DPI_RMOD POINTER_DEFAULT_DPI_REVERSE
# define S_D_MOD POINTER_SNIPING_DPI_FORWARD


+ 0
- 1
keyboards/mechwild/puckbuddy/puckbuddy.h View File

@ -48,5 +48,4 @@ enum keyboard_keycodes {
TAP_ON,
TAP_OFF,
TAP_TOG,
NEW_SAFE_RANGE
};

+ 1
- 1
keyboards/moonlander/keymaps/default/keymap.c View File

@ -28,7 +28,7 @@ enum layers {
};
enum custom_keycodes {
VRSN = ML_SAFE_RANGE,
VRSN = SAFE_RANGE,
};
// clang-format off


+ 1
- 1
keyboards/moonlander/keymaps/shahn-neo/keymap.c View File

@ -24,7 +24,7 @@ enum layers {
};
enum custom_keycodes {
a_umlaut = ML_SAFE_RANGE,
a_umlaut = SAFE_RANGE,
o_umlaut,
u_umlaut,
eszett,


+ 1
- 2
keyboards/moonlander/moonlander.h View File

@ -90,9 +90,8 @@ extern bool mcp23018_leds[];
// clang-format on
enum planck_ez_keycodes {
TOGGLE_LAYER_COLOR = SAFE_RANGE,
TOGGLE_LAYER_COLOR = QK_KB_0,
LED_LEVEL,
ML_SAFE_RANGE,
};
#ifndef WEBUSB_ENABLE


+ 0
- 5
keyboards/mxss/keymaps/default/keymap.c View File

@ -29,11 +29,6 @@ hs_set layer_colors[4] = {
};
size_t lc_size = ARRAY_SIZE(layer_colors);
// Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control
enum custom_keycodes {
MY_KEYCODE = NEW_SAFE_RANGE,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT( /* Base */
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,


+ 0
- 1
keyboards/mxss/mxss_frontled.h View File

@ -67,7 +67,6 @@ enum fled_keycodes {
FLED_MOD = QK_KB_0, // QK_KB_0 = VIA custom keycode start
FLED_VAI,
FLED_VAD,
NEW_SAFE_RANGE // define a new safe range
};
void fled_init(void); // Run init functions for front LEDs


+ 0
- 4
keyboards/mxss/readme.md View File

@ -53,7 +53,3 @@ Colors for FLED_INDI mode are hardcoded as hue/saturation values, the caps lock
- FLED_MOD - Cycle between the 3 modes (FLED_OFF -> FLED_RGB -> FLED_INDI)
- FLED_VAI - Increase front LED brightness
- FLED_VAD - Decrease front LED brightness
# Further Notes
As SAFE_RANGE is used for defining the custom keycodes seen above, please use NEW_SAFE_RANGE as the starting value for any custom keycodes in keymap.c, as per the example.

+ 0
- 6
keyboards/mxss/templates/keymap.c View File

@ -29,12 +29,6 @@ hs_set layer_colors[4] = {
};
size_t lc_size = ARRAY_SIZE(layer_colors);
// Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control
enum custom_keycodes {
MY_KEYCODE = NEW_SAFE_RANGE,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
__KEYMAP_GOES_HERE__
};

+ 1
- 1
keyboards/oddball/oddball.h View File

@ -36,7 +36,7 @@
}
enum custom_keycodes {
KC_SCROLL = SAFE_RANGE,
KC_SCROLL = QK_KB_0,
KC_CPI_1,
KC_CPI_2,
KC_CPI_3


+ 1
- 2
keyboards/omnikeyish/omnikeyish.h View File

@ -3,8 +3,7 @@
#include "quantum.h"
enum keycodes {
QWERTY = SAFE_RANGE,
DYNAMIC_MACRO_RANGE
DYNAMIC_MACRO_RANGE = QK_KB_0
};
#include "dynamic_macro.h"


+ 0
- 1
keyboards/orthocode/orthocode.h View File

@ -38,5 +38,4 @@
enum custom_keycodes {
SHIFTSPACE = QK_KB_0,
QWERTY
};

+ 1
- 2
keyboards/planck/ez/ez.h View File

@ -68,9 +68,8 @@ void planck_ez_left_led_off(void);
void planck_ez_left_led_level(uint8_t level);
enum planck_ez_keycodes {
LED_LEVEL = SAFE_RANGE,
LED_LEVEL = QK_KB_0,
TOGGLE_LAYER_COLOR,
EZ_SAFE_RANGE,
};
#ifndef WEBUSB_ENABLE


+ 1
- 1
keyboards/planck/keymaps/charlesrocket/keymap.c View File

@ -20,7 +20,7 @@
#define LSA_T(kc) MT(MOD_LSFT | MOD_LALT, kc)
enum planck_keycodes {
RGB_SLD = EZ_SAFE_RANGE,
RGB_SLD = SAFE_RANGE,
};
enum planck_layers {


+ 1
- 1
keyboards/planck/keymaps/oryx/keymap.c View File

@ -18,7 +18,7 @@
#include QMK_KEYBOARD_H
enum planck_keycodes {
RGB_SLD = EZ_SAFE_RANGE,
RGB_SLD = SAFE_RANGE,
};
enum planck_layers {


+ 0
- 2
keyboards/ploopyco/mouse/keymaps/default/keymap.c View File

@ -17,8 +17,6 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(/* Base */
C(KC_C), KC_BTN1, KC_BTN3, KC_BTN2, C(KC_V), KC_BTN4, KC_BTN5, DPI_CONFIG)


+ 0
- 2
keyboards/ploopyco/mouse/keymaps/drashna/keymap.c View File

@ -17,8 +17,6 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(


+ 0
- 1
keyboards/ploopyco/mouse/mouse.h View File

@ -43,7 +43,6 @@ extern uint16_t dpi_array[];
enum ploopy_keycodes {
DPI_CONFIG = QK_KB_0,
DRAG_SCROLL,
PLOOPY_SAFE_RANGE,
};
bool encoder_update_user(uint8_t index, bool clockwise);


+ 0
- 2
keyboards/ploopyco/trackball/keymaps/default/keymap.c View File

@ -17,8 +17,6 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_BTN1, KC_BTN3, KC_BTN2,


+ 0
- 1
keyboards/ploopyco/trackball/trackball.h View File

@ -46,7 +46,6 @@ extern uint16_t dpi_array[];
enum ploopy_keycodes {
DPI_CONFIG = QK_KB_0,
DRAG_SCROLL,
PLOOPY_SAFE_RANGE,
};
bool encoder_update_user(uint8_t index, bool clockwise);


+ 0
- 2
keyboards/ploopyco/trackball_mini/keymaps/default/keymap.c View File

@ -18,8 +18,6 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_BTN1, KC_BTN3, KC_BTN2,


+ 1
- 1
keyboards/ploopyco/trackball_mini/keymaps/drag_scroll/keymap.c View File

@ -21,7 +21,7 @@
bool is_drag_scroll = false;
enum custom_keycodes {
DRAG_SCROLL = PLOOPY_SAFE_RANGE,
DRAG_SCROLL = SAFE_RANGE,
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {


+ 0
- 1
keyboards/ploopyco/trackball_mini/trackball_mini.h View File

@ -43,7 +43,6 @@ extern keyboard_config_t keyboard_config;
enum ploopy_keycodes {
DPI_CONFIG = QK_KB_0,
DRAG_SCROLL,
PLOOPY_SAFE_RANGE,
};
bool encoder_update_user(uint8_t index, bool clockwise);


+ 0
- 2
keyboards/ploopyco/trackball_nano/keymaps/default/keymap.c View File

@ -18,7 +18,5 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
// Dummy
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}};

+ 0
- 1
keyboards/ploopyco/trackball_nano/keymaps/maddie/keymap.c View File

@ -23,7 +23,6 @@
#define DELTA_X_THRESHOLD 60
#define DELTA_Y_THRESHOLD 15
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
bool scroll_enabled = false;
bool lock_state = false;


+ 1
- 2
keyboards/ploopyco/trackball_nano/trackball_nano.h View File

@ -31,8 +31,7 @@ typedef union {
extern keyboard_config_t keyboard_config;
enum ploopy_keycodes {
DPI_CONFIG = SAFE_RANGE,
PLOOPY_SAFE_RANGE,
DPI_CONFIG = QK_KB_0,
};
void cycle_dpi(void);

+ 0
- 2
keyboards/ploopyco/trackball_thumb/keymaps/default/keymap.c View File

@ -17,8 +17,6 @@
*/
#include QMK_KEYBOARD_H
// safe range starts at `PLOOPY_SAFE_RANGE` instead.
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_BTN4, KC_BTN1, KC_BTN3, KC_BTN2, KC_BTN5,


+ 0
- 1
keyboards/ploopyco/trackball_thumb/trackball_thumb.h View File

@ -48,5 +48,4 @@ extern uint16_t dpi_array[];
enum ploopy_keycodes {
DPI_CONFIG = QK_KB_0,
DRAG_SCROLL,
PLOOPY_SAFE_RANGE,
};

+ 0
- 5
keyboards/rubi/keymaps/default/keymap.c View File

@ -15,11 +15,6 @@
*/
#include QMK_KEYBOARD_H
// enum custom_keycodes {
// FIRST = NEW_SAFE_RANGE,
// };
// Defines names for use in layer keycodes and the keymap
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */


+ 2
- 3
keyboards/rubi/rubi.h View File

@ -20,11 +20,10 @@
#define CALC_DIGITS 12
enum rubi_keycodes {
ENC_PRESS = SAFE_RANGE,
ENC_PRESS = QK_KB_0,
CL_PLUS,
CL_STAR,
CL_TYPE,
NEW_SAFE_RANGE
CL_TYPE
};
enum oled_modes {


+ 1
- 1
keyboards/terrazzo/terrazzo.h View File

@ -108,7 +108,7 @@ enum terrazzo_matrix_effects {
};
enum terrazzo_keycodes {
TZ_NXT = SAFE_RANGE,
TZ_NXT = QK_KB_0,
TZ_PRV,
TZ_OFF
};


+ 1
- 1
keyboards/v60_type_r/v60_type_r.h View File

@ -25,7 +25,7 @@ void rgb_init(void);
void set_rgb_color(uint8_t pin, uint8_t value, uint8_t timer_value);
enum my_keycodes {
RGB_RI = SAFE_RANGE,
RGB_RI = QK_KB_0,
RGB_RD,
RGB_GI,
RGB_GD,


+ 1
- 1
keyboards/yushakobo/navpad/navpad_prefs.h View File

@ -19,7 +19,7 @@
#include "quantum.h"
enum custom_keycodes {
TAP_00 = SAFE_RANGE
TAP_00 = QK_KB_0
};
enum layer_name {


+ 1
- 1
quantum/quantum_keycodes.h View File

@ -34,7 +34,7 @@
#define QK_RALT 0x1400
#define QK_RGUI 0x1800
#define SAFE_RANGE QK_KB
#define SAFE_RANGE QK_USER
// clang-format on
// Generic decoding for the whole QK_MODS range


+ 1
- 9
users/drashna/keyrecords/process_records.h View File

@ -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


+ 2
- 2
users/drashna/pointing/pointing.c View File

@ -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;


Loading…
Cancel
Save