Browse Source

Add missing returns for the new modifiers functions.

xmkb
Pete Johanson 5 years ago
parent
commit
6e1e21c2be
  1. 4
      src/hid.c

4
src/hid.c

@ -24,13 +24,13 @@ int zmk_hid_unregister_mod(zmk_mod modifier) @@ -24,13 +24,13 @@ int zmk_hid_unregister_mod(zmk_mod modifier)
int zmk_hid_register_mods(zmk_mod_flags modifiers)
{
report.modifiers |= modifiers;
printk("After register mods %d have %d\n", modifiers, report.modifiers);
return 0;
}
int zmk_hid_unregister_mods(zmk_mod_flags modifiers)
{
report.modifiers &= ~modifiers;
printk("After unregister mods %d have %d\n", modifiers, report.modifiers);
return 0;
}
#define KEY_OFFSET 0x02

Loading…
Cancel
Save