(minor, and a little reorganization)
parent
b7e5e7b735
commit
241e90104a
|
@ -47,6 +47,10 @@ void kbfun_press(
|
||||||
uint8_t * keycode, uint8_t * current_layer,
|
uint8_t * keycode, uint8_t * current_layer,
|
||||||
uint8_t * row, uint8_t * col ) {
|
uint8_t * row, uint8_t * col ) {
|
||||||
|
|
||||||
|
// no-op
|
||||||
|
if (*keycode == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// modifier keys
|
// modifier keys
|
||||||
switch (*keycode) {
|
switch (*keycode) {
|
||||||
case KEY_LeftControl: keyboard_modifier_keys |= (1<<0);
|
case KEY_LeftControl: keyboard_modifier_keys |= (1<<0);
|
||||||
|
@ -79,6 +83,10 @@ void kbfun_release(
|
||||||
uint8_t * keycode, uint8_t * current_layer,
|
uint8_t * keycode, uint8_t * current_layer,
|
||||||
uint8_t * row, uint8_t * col ) {
|
uint8_t * row, uint8_t * col ) {
|
||||||
|
|
||||||
|
// no-op
|
||||||
|
if (*keycode == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// modifier keys
|
// modifier keys
|
||||||
switch (*keycode) {
|
switch (*keycode) {
|
||||||
case KEY_LeftControl: keyboard_modifier_keys &= ~(1<<0);
|
case KEY_LeftControl: keyboard_modifier_keys &= ~(1<<0);
|
||||||
|
|
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
Loading…
Reference in New Issue