Update to new handle_keyswitch_event API naming

pull/389/head
Jesse Vincent 8 years ago
parent 7c42b8e07b
commit e3b5ae4012

@ -34,9 +34,9 @@ void systerAction (KaleidoscopePlugins::Syster::action_t action, const char *sym
Unicode.type (0x2328); Unicode.type (0x2328);
break; break;
case KaleidoscopePlugins::Syster::EndAction: case KaleidoscopePlugins::Syster::EndAction:
handle_key_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
handle_key_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
break; break;
case KaleidoscopePlugins::Syster::SymbolAction: case KaleidoscopePlugins::Syster::SymbolAction:

@ -49,9 +49,9 @@ void systerAction (KaleidoscopePlugins::Syster::action_t action, const char *sym
Unicode.type (0x2328); Unicode.type (0x2328);
break; break;
case KaleidoscopePlugins::Syster::EndAction: case KaleidoscopePlugins::Syster::EndAction:
handle_key_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
handle_key_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
break; break;
case KaleidoscopePlugins::Syster::SymbolAction: case KaleidoscopePlugins::Syster::SymbolAction:

@ -73,9 +73,9 @@ namespace KaleidoscopePlugins {
if (key_toggled_off (keyState)) { if (key_toggled_off (keyState)) {
if (mappedKey == Key_Space) { if (mappedKey == Key_Space) {
for (uint8_t i = 0; i <= symbolPos; i++) { for (uint8_t i = 0; i <= symbolPos; i++) {
handle_key_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, IS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
handle_key_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED); handle_keyswitch_event (Key_Backspace, 255, 255, WAS_PRESSED | INJECTED);
Keyboard.sendReport (); Keyboard.sendReport ();
} }

Loading…
Cancel
Save