|
|
|
@ -3,17 +3,18 @@
@@ -3,17 +3,18 @@
|
|
|
|
|
|
|
|
|
|
#include "usb_hid.h" |
|
|
|
|
|
|
|
|
|
__attribute__((weak)) bool zmk_handle_key_user(struct zmk_key_event key_event) |
|
|
|
|
__attribute__((weak)) bool zmk_handle_key_user(struct zmk_key_event *key_event) |
|
|
|
|
{ |
|
|
|
|
return true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
void zmk_handle_key(struct zmk_key_event key_event) |
|
|
|
|
{ |
|
|
|
|
if (!zmk_handle_key_user(key_event)) |
|
|
|
|
if (!zmk_handle_key_user(&key_event)) |
|
|
|
|
{ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (key_event.pressed) |
|
|
|
|
{ |
|
|
|
|
zmk_usb_hid_press_key(key_event.key); |
|
|
|
|