Update to new handle_keyswitch_event API naming

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

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

Loading…
Cancel
Save