diff options
Diffstat (limited to 'users/billypython/billypython.c')
| -rw-r--r-- | users/billypython/billypython.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/users/billypython/billypython.c b/users/billypython/billypython.c new file mode 100644 index 000000000..7bdfe33a4 --- /dev/null +++ b/users/billypython/billypython.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include "billypython.h" | ||
| 2 | |||
| 3 | __attribute__((weak)) | ||
| 4 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | ||
| 5 | return true; | ||
| 6 | } | ||
| 7 | |||
| 8 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 9 | if (!process_record_keymap(keycode, record)) { | ||
| 10 | return false; | ||
| 11 | } | ||
| 12 | |||
| 13 | switch (keycode) { | ||
| 14 | case CLEAR: | ||
| 15 | if (record->event.pressed) { | ||
| 16 | SEND_STRING(SS_LCTRL("a") SS_TAP(X_DELETE)); | ||
| 17 | } | ||
| 18 | return false; | ||
| 19 | |||
| 20 | default: | ||
| 21 | return true; | ||
| 22 | } | ||
| 23 | } | ||
| 24 | |||
| 25 | __attribute__((weak)) | ||
| 26 | uint32_t layer_state_set_keymap(uint32_t state) { | ||
| 27 | return state; | ||
| 28 | } | ||
| 29 | |||
| 30 | uint32_t layer_state_set_user(uint32_t state) { | ||
| 31 | return layer_state_set_keymap(state); | ||
| 32 | } | ||
