Use UNKNOWN_KEYSWITCH_LOCATION rather than a magic value

pull/389/head
Jesse Vincent 8 years ago
parent e3b5ae4012
commit 79f543734f

@ -34,9 +34,9 @@ void systerAction (KaleidoscopePlugins::Syster::action_t action, const char *sym
Unicode.type (0x2328);
break;
case KaleidoscopePlugins::Syster::EndAction:
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 ();
break;
case KaleidoscopePlugins::Syster::SymbolAction:

@ -49,9 +49,9 @@ void systerAction (KaleidoscopePlugins::Syster::action_t action, const char *sym
Unicode.type (0x2328);
break;
case KaleidoscopePlugins::Syster::EndAction:
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 ();
break;
case KaleidoscopePlugins::Syster::SymbolAction:

@ -73,9 +73,9 @@ namespace KaleidoscopePlugins {
if (key_toggled_off (keyState)) {
if (mappedKey == Key_Space) {
for (uint8_t i = 0; i <= symbolPos; i++) {
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 ();
}

Loading…
Cancel
Save