Various fixes for keyboards not implementing callbacks correctly (#24092)

This commit is contained in:
Joel Challis 2024-07-11 13:47:53 +01:00 committed by GitHub
parent 23c4704123
commit e0809eade5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 58 additions and 16 deletions

View file

@ -131,6 +131,10 @@ bool rgb_matrix_indicators_kb(void) {
#endif
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (!process_record_user(keycode, record)) {
return false;
}
if (record->event.pressed) {
switch(keycode) {
#ifdef RGBLIGHT_ENABLE

View file

@ -223,6 +223,10 @@ layer_state_t layer_state_set_user(layer_state_t state) {
#endif
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (!process_record_user(keycode, record)) {
return false;
}
if (record->event.pressed) {
switch(keycode) {
#ifdef RGB_MATRIX_DISABLE_KEYCODES

View file

@ -17,9 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "quantum.h"
void keyboard_pre_init_user(void) {
// Call the keyboard pre init code.
void keyboard_pre_init_kb(void) {
// Set our LED pins as output
gpio_set_pin_output(D7);
keyboard_pre_init_user();
}

View file

@ -17,8 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "quantum.h"
void keyboard_pre_init_user(void) {
// Call the keyboard pre init code.
void keyboard_pre_init_kb(void) {
// Set our LED pins as output
gpio_set_pin_output(B7);
keyboard_pre_init_user();
}