2019-02-14 20:09:27 +00:00
|
|
|
#include "billypython.h"
|
|
|
|
|
|
|
|
__attribute__((weak))
|
|
|
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
if (!process_record_keymap(keycode, record)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (keycode) {
|
|
|
|
case CLEAR:
|
|
|
|
if (record->event.pressed) {
|
2022-10-17 12:45:23 +00:00
|
|
|
SEND_STRING(SS_LCTL("a") SS_TAP(X_DELETE));
|
2019-02-14 20:09:27 +00:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
|
|
|
|
default:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
__attribute__((weak))
|
2022-06-18 21:37:51 +00:00
|
|
|
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
2019-02-14 20:09:27 +00:00
|
|
|
return state;
|
|
|
|
}
|
|
|
|
|
2021-07-19 16:50:55 +00:00
|
|
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
2019-02-14 20:09:27 +00:00
|
|
|
return layer_state_set_keymap(state);
|
|
|
|
}
|