From 4a45dc2faf7f016b8813d5b027da635a19792f0b Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 27 Mar 2017 15:31:44 -0700 Subject: [PATCH] Use UNKNOWN_KEYSWITCH_LOCATION rather than a magic value --- src/Kaleidoscope/Cycle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Kaleidoscope/Cycle.cpp b/src/Kaleidoscope/Cycle.cpp index f9535ede..fd77248a 100644 --- a/src/Kaleidoscope/Cycle.cpp +++ b/src/Kaleidoscope/Cycle.cpp @@ -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 (); }