Use UNKNOWN_KEYSWITCH_LOCATION rather than a magic value

pull/389/head
Jesse Vincent 8 years ago
parent b34180f4c7
commit 4a45dc2faf

@ -42,14 +42,14 @@ namespace KaleidoscopePlugins {
void
Cycle::replace (Key key) {
handle_keyswitch_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED);
handle_keyswitch_event (Key_Backspace, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED);
Keyboard.sendReport ();
handle_keyswitch_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED);
handle_keyswitch_event (Key_Backspace, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED);
Keyboard.sendReport ();
handle_keyswitch_event (key, 255, 255, IS_PRESSED | INJECTED);
handle_keyswitch_event (key, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED);
Keyboard.sendReport ();
handle_keyswitch_event (key, 255, 255, WAS_PRESSED | INJECTED);
handle_keyswitch_event (key, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED);
Keyboard.sendReport ();
}

Loading…
Cancel
Save