Various fixes for keyboards not implementing callbacks correctly (#24092)
This commit is contained in:
parent
23c4704123
commit
e0809eade5
14 changed files with 58 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue