diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c | 10 | ||||
| -rw-r--r-- | keyboards/bastardkb/dilemma/dilemma.c | 1 | ||||
| -rw-r--r-- | keyboards/handwired/xealous/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/lime/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c | 6 | ||||
| -rw-r--r-- | keyboards/rmi_kb/tkl_ff/keymaps/default/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/rmi_kb/tkl_ff/keymaps/iso/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/rmi_kb/wete/v2/keymaps/default/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/rmi_kb/wete/v2/keymaps/iso/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/spleeb/spleeb.c | 1 | ||||
| -rw-r--r-- | keyboards/steelseries/prime/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/steelseries/prime_plus/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/synthlabs/solo/keymaps/gamepad/keymap.c | 4 |
13 files changed, 46 insertions, 80 deletions
diff --git a/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c b/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c index 0fe7cdc247..4964f59217 100644 --- a/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c +++ b/keyboards/3w6/rev2/keymaps/default_pimoroni/pimoroni_trackball.c | |||
| @@ -72,14 +72,7 @@ __attribute__((weak)) void trackball_check_click(bool pressed, report_mouse_t* m | |||
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | bool process_record_kb(uint16_t keycode, keyrecord_t* record) { | 75 | bool process_record_user(uint16_t keycode, keyrecord_t* record) { |
| 76 | if (true) { | ||
| 77 | xprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed); | ||
| 78 | } | ||
| 79 | |||
| 80 | |||
| 81 | if (!process_record_user(keycode, record)) { return false; } | ||
| 82 | |||
| 83 | /* If Mousekeys is disabled, then use handle the mouse button | 76 | /* If Mousekeys is disabled, then use handle the mouse button |
| 84 | * keycodes. This makes things simpler, and allows usage of | 77 | * keycodes. This makes things simpler, and allows usage of |
| 85 | * the keycodes in a consistent manner. But only do this if | 78 | * the keycodes in a consistent manner. But only do this if |
| @@ -95,6 +88,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { | |||
| 95 | } | 88 | } |
| 96 | pointing_device_set_report(currentReport); | 89 | pointing_device_set_report(currentReport); |
| 97 | pointing_device_send(); | 90 | pointing_device_send(); |
| 91 | return false; | ||
| 98 | } | 92 | } |
| 99 | #endif | 93 | #endif |
| 100 | 94 | ||
diff --git a/keyboards/bastardkb/dilemma/dilemma.c b/keyboards/bastardkb/dilemma/dilemma.c index c14345d075..138f363346 100644 --- a/keyboards/bastardkb/dilemma/dilemma.c +++ b/keyboards/bastardkb/dilemma/dilemma.c | |||
| @@ -176,7 +176,6 @@ void dilemma_set_pointer_dragscroll_enabled(bool enable) { | |||
| 176 | 176 | ||
| 177 | void pointing_device_init_kb(void) { | 177 | void pointing_device_init_kb(void) { |
| 178 | maybe_update_pointing_device_cpi(&g_dilemma_config); | 178 | maybe_update_pointing_device_cpi(&g_dilemma_config); |
| 179 | pointing_device_init_user(); | ||
| 180 | } | 179 | } |
| 181 | 180 | ||
| 182 | /** | 181 | /** |
diff --git a/keyboards/handwired/xealous/keymaps/default/keymap.c b/keyboards/handwired/xealous/keymaps/default/keymap.c index 88aa4ddfc9..b581015b54 100644 --- a/keyboards/handwired/xealous/keymaps/default/keymap.c +++ b/keyboards/handwired/xealous/keymaps/default/keymap.c | |||
| @@ -87,7 +87,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 87 | float tone_qwerty[][2] = TONE_QWERTY; | 87 | float tone_qwerty[][2] = TONE_QWERTY; |
| 88 | float tone_numpad[][2] = TONE_NUMPAD; | 88 | float tone_numpad[][2] = TONE_NUMPAD; |
| 89 | 89 | ||
| 90 | layer_state_t default_layer_state_set_kb(layer_state_t state) { | 90 | layer_state_t default_layer_state_set_user(layer_state_t state) { |
| 91 | if (state == 1UL<<_QWERTY) { | 91 | if (state == 1UL<<_QWERTY) { |
| 92 | PLAY_SONG(tone_qwerty); | 92 | PLAY_SONG(tone_qwerty); |
| 93 | } else if (state == 1UL<<_NUMPAD) { | 93 | } else if (state == 1UL<<_NUMPAD) { |
diff --git a/keyboards/lime/keymaps/default/keymap.c b/keyboards/lime/keymaps/default/keymap.c index 8f4e6eb8a4..8e5923c14e 100644 --- a/keyboards/lime/keymaps/default/keymap.c +++ b/keyboards/lime/keymaps/default/keymap.c | |||
| @@ -172,7 +172,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 172 | # endif | 172 | # endif |
| 173 | 173 | ||
| 174 | /* Joystick + Encoder fix */ | 174 | /* Joystick + Encoder fix */ |
| 175 | void keyboard_post_init_kb(void) { | 175 | void keyboard_post_init_user(void) { |
| 176 | if (is_keyboard_master()) { | 176 | if (is_keyboard_master()) { |
| 177 | gpio_write_pin_low(JOYSTICK_X_PIN); | 177 | gpio_write_pin_low(JOYSTICK_X_PIN); |
| 178 | gpio_write_pin_low(JOYSTICK_Y_PIN); | 178 | gpio_write_pin_low(JOYSTICK_Y_PIN); |
diff --git a/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c b/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c index df59752ce0..382cb2b960 100644 --- a/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c +++ b/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c | |||
| @@ -76,15 +76,13 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
| 76 | } | 76 | } |
| 77 | return state; | 77 | return state; |
| 78 | } | 78 | } |
| 79 | void suspend_power_down_kb(void) { | 79 | void suspend_power_down_user(void) { |
| 80 | // code will run multiple times while keyboard is suspended | 80 | // code will run multiple times while keyboard is suspended |
| 81 | gpio_write_pin_high(GP23); | 81 | gpio_write_pin_high(GP23); |
| 82 | gpio_write_pin_high(GP24); | 82 | gpio_write_pin_high(GP24); |
| 83 | gpio_write_pin_high(GP25); | 83 | gpio_write_pin_high(GP25); |
| 84 | suspend_power_down_user(); | ||
| 85 | } | 84 | } |
| 86 | 85 | ||
| 87 | void suspend_wakeup_init_kb(void) { | 86 | void suspend_wakeup_init_user(void) { |
| 88 | layer_state_set_kb(layer_state); | 87 | layer_state_set_kb(layer_state); |
| 89 | suspend_wakeup_init_user(); | ||
| 90 | } | 88 | } |
diff --git a/keyboards/rmi_kb/tkl_ff/keymaps/default/keymap.c b/keyboards/rmi_kb/tkl_ff/keymaps/default/keymap.c index d49d9d0b77..65c5560556 100644 --- a/keyboards/rmi_kb/tkl_ff/keymaps/default/keymap.c +++ b/keyboards/rmi_kb/tkl_ff/keymaps/default/keymap.c | |||
| @@ -42,25 +42,19 @@ const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( | |||
| 42 | 42 | ||
| 43 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(ll_none, ll_cl, ll_sl); | 43 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(ll_none, ll_cl, ll_sl); |
| 44 | 44 | ||
| 45 | void keyboard_post_init_kb(void) { | 45 | void keyboard_post_init_user(void) { |
| 46 | rgblight_layers = rgb_layers; | 46 | rgblight_layers = rgb_layers; |
| 47 | |||
| 48 | keyboard_post_init_user(); | ||
| 49 | } | 47 | } |
| 50 | 48 | ||
| 51 | bool led_update_kb(led_t led_state) { | 49 | bool led_update_user(led_t led_state) { |
| 52 | bool res = led_update_user(led_state); | 50 | uint8_t lock_bits = led_state.scroll_lock << 1 | led_state.caps_lock; |
| 53 | 51 | for (uint8_t i=0; i<3; i++) { | |
| 54 | if (res) { | 52 | rgblight_set_layer_state(i, false); |
| 55 | uint8_t lock_bits = led_state.scroll_lock << 1 | led_state.caps_lock; | 53 | } |
| 56 | for (uint8_t i=0; i<3; i++) { | 54 | if (lock_bits < 3) { |
| 57 | rgblight_set_layer_state(i, false); | 55 | rgblight_set_layer_state(lock_bits, true); |
| 58 | } | ||
| 59 | if (lock_bits < 3) { | ||
| 60 | rgblight_set_layer_state(lock_bits, true); | ||
| 61 | } | ||
| 62 | } | 56 | } |
| 63 | 57 | ||
| 64 | return res; | 58 | return false; |
| 65 | } | 59 | } |
| 66 | #endif | 60 | #endif |
diff --git a/keyboards/rmi_kb/tkl_ff/keymaps/iso/keymap.c b/keyboards/rmi_kb/tkl_ff/keymaps/iso/keymap.c index 90319d52e6..4414fa2832 100644 --- a/keyboards/rmi_kb/tkl_ff/keymaps/iso/keymap.c +++ b/keyboards/rmi_kb/tkl_ff/keymaps/iso/keymap.c | |||
| @@ -42,25 +42,19 @@ const rgblight_segment_t PROGMEM ll_sl[] = RGBLIGHT_LAYER_SEGMENTS( | |||
| 42 | 42 | ||
| 43 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(ll_none, ll_cl, ll_sl); | 43 | const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(ll_none, ll_cl, ll_sl); |
| 44 | 44 | ||
| 45 | void keyboard_post_init_kb(void) { | 45 | void keyboard_post_init_user(void) { |
| 46 | rgblight_layers = rgb_layers; | 46 | rgblight_layers = rgb_layers; |
| 47 | |||
| 48 | keyboard_post_init_user(); | ||
| 49 | } | 47 | } |
| 50 | 48 | ||
| 51 | bool led_update_kb(led_t led_state) { | 49 | bool led_update_user(led_t led_state) { |
| 52 | bool res = led_update_user(led_state); | 50 | uint8_t lock_bits = led_state.scroll_lock << 1 | led_state.caps_lock; |
| 53 | 51 | for (uint8_t i=0; i<3; i++) { | |
| 54 | if (res) { | 52 | rgblight_set_layer_state(i, false); |
| 55 | uint8_t lock_bits = led_state.scroll_lock << 1 | led_state.caps_lock; | 53 | } |
| 56 | for (uint8_t i=0; i<3; i++) { | 54 | if (lock_bits < 3) { |
| 57 | rgblight_set_layer_state(i, false); | 55 | rgblight_set_layer_state(lock_bits, true); |
| 58 | } | ||
| 59 | if (lock_bits < 3) { | ||
| 60 | rgblight_set_layer_state(lock_bits, true); | ||
| 61 | } | ||
| 62 | } | 56 | } |
| 63 | 57 | ||
| 64 | return res; | 58 | return false; |
| 65 | } | 59 | } |
| 66 | #endif | 60 | #endif |
diff --git a/keyboards/rmi_kb/wete/v2/keymaps/default/keymap.c b/keyboards/rmi_kb/wete/v2/keymaps/default/keymap.c index 3916d18366..067a278381 100644 --- a/keyboards/rmi_kb/wete/v2/keymaps/default/keymap.c +++ b/keyboards/rmi_kb/wete/v2/keymaps/default/keymap.c | |||
| @@ -73,25 +73,19 @@ const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST( | |||
| 73 | ll_slcl | 73 | ll_slcl |
| 74 | ); | 74 | ); |
| 75 | 75 | ||
| 76 | void keyboard_post_init_kb(void) { | 76 | void keyboard_post_init_user(void) { |
| 77 | rgblight_layers = rgb_layers; | 77 | rgblight_layers = rgb_layers; |
| 78 | |||
| 79 | keyboard_post_init_user(); | ||
| 80 | } | 78 | } |
| 81 | 79 | ||
| 82 | bool led_update_kb (led_t led_state) { | 80 | bool led_update_user (led_t led_state) { |
| 83 | bool res = led_update_user(led_state); | 81 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; |
| 84 | 82 | for (uint8_t i=0; i<7; i++) { | |
| 85 | if (res) { | 83 | rgblight_set_layer_state(i, false); |
| 86 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; | 84 | } |
| 87 | for (uint8_t i=0; i<7; i++) { | 85 | if (lock_bits < 7) { |
| 88 | rgblight_set_layer_state(i, false); | 86 | rgblight_set_layer_state(lock_bits, true); |
| 89 | } | ||
| 90 | if (lock_bits < 7) { | ||
| 91 | rgblight_set_layer_state(lock_bits, true); | ||
| 92 | } | ||
| 93 | } | 87 | } |
| 94 | 88 | ||
| 95 | return res; | 89 | return false; |
| 96 | } | 90 | } |
| 97 | #endif | 91 | #endif |
diff --git a/keyboards/rmi_kb/wete/v2/keymaps/iso/keymap.c b/keyboards/rmi_kb/wete/v2/keymaps/iso/keymap.c index 12933c4b57..66e8f7e8da 100644 --- a/keyboards/rmi_kb/wete/v2/keymaps/iso/keymap.c +++ b/keyboards/rmi_kb/wete/v2/keymaps/iso/keymap.c | |||
| @@ -73,25 +73,19 @@ const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST( | |||
| 73 | ll_slcl | 73 | ll_slcl |
| 74 | ); | 74 | ); |
| 75 | 75 | ||
| 76 | void keyboard_post_init_kb(void) { | 76 | void keyboard_post_init_user(void) { |
| 77 | rgblight_layers = rgb_layers; | 77 | rgblight_layers = rgb_layers; |
| 78 | |||
| 79 | keyboard_post_init_user(); | ||
| 80 | } | 78 | } |
| 81 | 79 | ||
| 82 | bool led_update_kb (led_t led_state) { | 80 | bool led_update_user (led_t led_state) { |
| 83 | bool res = led_update_user(led_state); | 81 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; |
| 84 | 82 | for (uint8_t i=0; i<7; i++) { | |
| 85 | if (res) { | 83 | rgblight_set_layer_state(i, false); |
| 86 | uint8_t lock_bits = led_state.scroll_lock << 2 | led_state.caps_lock << 1 | led_state.num_lock; | 84 | } |
| 87 | for (uint8_t i=0; i<7; i++) { | 85 | if (lock_bits < 7) { |
| 88 | rgblight_set_layer_state(i, false); | 86 | rgblight_set_layer_state(lock_bits, true); |
| 89 | } | ||
| 90 | if (lock_bits < 7) { | ||
| 91 | rgblight_set_layer_state(lock_bits, true); | ||
| 92 | } | ||
| 93 | } | 87 | } |
| 94 | 88 | ||
| 95 | return res; | 89 | return false; |
| 96 | } | 90 | } |
| 97 | #endif | 91 | #endif |
diff --git a/keyboards/spleeb/spleeb.c b/keyboards/spleeb/spleeb.c index 33131fa3e2..96cf622743 100644 --- a/keyboards/spleeb/spleeb.c +++ b/keyboards/spleeb/spleeb.c | |||
| @@ -283,7 +283,6 @@ void pointing_device_init_kb(void) { | |||
| 283 | cirque_pinnacle_enable_cursor_glide(false); | 283 | cirque_pinnacle_enable_cursor_glide(false); |
| 284 | 284 | ||
| 285 | set_auto_mouse_enable(true); | 285 | set_auto_mouse_enable(true); |
| 286 | pointing_device_init_user(); | ||
| 287 | } | 286 | } |
| 288 | 287 | ||
| 289 | /** | 288 | /** |
diff --git a/keyboards/steelseries/prime/keymaps/default/keymap.c b/keyboards/steelseries/prime/keymaps/default/keymap.c index 803f6b47da..0855107bf7 100644 --- a/keyboards/steelseries/prime/keymaps/default/keymap.c +++ b/keyboards/steelseries/prime/keymaps/default/keymap.c | |||
| @@ -18,7 +18,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 18 | }; | 18 | }; |
| 19 | // clang-format on | 19 | // clang-format on |
| 20 | 20 | ||
| 21 | void pointing_device_init_kb(void) { | 21 | void pointing_device_init_user(void) { |
| 22 | pointing_device_set_cpi(1600); | 22 | pointing_device_set_cpi(1600); |
| 23 | } | 23 | } |
| 24 | 24 | ||
diff --git a/keyboards/steelseries/prime_plus/keymaps/default/keymap.c b/keyboards/steelseries/prime_plus/keymaps/default/keymap.c index 803f6b47da..0855107bf7 100644 --- a/keyboards/steelseries/prime_plus/keymaps/default/keymap.c +++ b/keyboards/steelseries/prime_plus/keymaps/default/keymap.c | |||
| @@ -18,7 +18,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 18 | }; | 18 | }; |
| 19 | // clang-format on | 19 | // clang-format on |
| 20 | 20 | ||
| 21 | void pointing_device_init_kb(void) { | 21 | void pointing_device_init_user(void) { |
| 22 | pointing_device_set_cpi(1600); | 22 | pointing_device_set_cpi(1600); |
| 23 | } | 23 | } |
| 24 | 24 | ||
diff --git a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c b/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c index 7bafe6b191..f21b7e3411 100644 --- a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c +++ b/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c | |||
| @@ -20,11 +20,11 @@ joystick_config_t joystick_axes[JOYSTICK_AXIS_COUNT] = { | |||
| 20 | [0] = JOYSTICK_AXIS_VIRTUAL | 20 | [0] = JOYSTICK_AXIS_VIRTUAL |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | bool encoder_update_kb(uint8_t index, bool clockwise) { | 23 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 24 | joystick_position += (clockwise ? 2 : -2) * (full_joystick_value / pulses_per_revolution); // +2 and -2 are used, since +1.0 and -1.0 axis output refers to positions at half of a full rotation | 24 | joystick_position += (clockwise ? 2 : -2) * (full_joystick_value / pulses_per_revolution); // +2 and -2 are used, since +1.0 and -1.0 axis output refers to positions at half of a full rotation |
| 25 | joystick_set_axis(0, joystick_position); | 25 | joystick_set_axis(0, joystick_position); |
| 26 | 26 | ||
| 27 | return true; | 27 | return false; |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | #endif | 30 | #endif |
