Rename an argument to be less confusing.

('flags' is often used to mean 'flags on a key definition',
but this is really 'logical state of a virtual keyswitch')
pull/365/head
Jesse Vincent 6 years ago
parent 4cc74eacdc
commit 6ec5f2cc50

@ -10,8 +10,9 @@ MacroKeyEvent Macros_::active_macros[];
byte Macros_::active_macro_count; byte Macros_::active_macro_count;
byte Macros_::row, Macros_::col; byte Macros_::row, Macros_::col;
void playMacroKeyswitchEvent(Key key, uint8_t flags) { void playMacroKeyswitchEvent(Key key, uint8_t keyswitch_state) {
handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, INJECTED | flags); handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, keyswitch_state | INJECTED );
kaleidoscope::hid::sendKeyboardReport(); kaleidoscope::hid::sendKeyboardReport();
kaleidoscope::hid::sendMouseReport(); kaleidoscope::hid::sendMouseReport();
} }

Loading…
Cancel
Save