From e07f00e9470c8a67069c8d699b242a7a3b6aec15 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 5 Apr 2017 10:42:05 +0200 Subject: [PATCH] Focus: keymap.map should work with raw keycodes Instead of separating `flags` and `keyCode`, just use the `raw` combination. Easier for higher level tools to work with. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Keymap.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Keymap.cpp b/src/Kaleidoscope/EEPROM-Keymap.cpp index 9a4f0aa9..11b0fc8a 100644 --- a/src/Kaleidoscope/EEPROM-Keymap.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap.cpp @@ -78,17 +78,14 @@ namespace KaleidoscopePlugins { EEPROMKeymap::parseKey (void) { Key key; - key.flags = Serial.parseInt (); - key.keyCode = Serial.parseInt (); + key.raw = Serial.parseInt (); return key; } void EEPROMKeymap::printKey (Key k) { - ::Focus.printNumber (k.flags); - ::Focus.printSpace (); - ::Focus.printNumber (k.keyCode); + ::Focus.printNumber (k.raw); } bool