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_::row, Macros_::col;
void playMacroKeyswitchEvent(Key key, uint8_t flags) {
handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, INJECTED | flags);
void playMacroKeyswitchEvent(Key key, uint8_t keyswitch_state) {
handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, keyswitch_state | INJECTED );
kaleidoscope::hid::sendKeyboardReport();
kaleidoscope::hid::sendMouseReport();
}

Loading…
Cancel
Save