(minor, and a little reorganization)

partial-rewrite
Ben Blazak 2012-04-24 23:49:17 -07:00
parent b7e5e7b735
commit 241e90104a
3 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,10 @@ void kbfun_press(
uint8_t * keycode, uint8_t * current_layer,
uint8_t * row, uint8_t * col ) {
// no-op
if (*keycode == 0)
return;
// modifier keys
switch (*keycode) {
case KEY_LeftControl: keyboard_modifier_keys |= (1<<0);
@ -79,6 +83,10 @@ void kbfun_release(
uint8_t * keycode, uint8_t * current_layer,
uint8_t * row, uint8_t * col ) {
// no-op
if (*keycode == 0)
return;
// modifier keys
switch (*keycode) {
case KEY_LeftControl: keyboard_modifier_keys &= ~(1<<0);

View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB