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 <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 1432015235
commit e07f00e947

@ -78,17 +78,14 @@ namespace KaleidoscopePlugins {
EEPROMKeymap::parseKey (void) { EEPROMKeymap::parseKey (void) {
Key key; Key key;
key.flags = Serial.parseInt (); key.raw = Serial.parseInt ();
key.keyCode = Serial.parseInt ();
return key; return key;
} }
void void
EEPROMKeymap::printKey (Key k) { EEPROMKeymap::printKey (Key k) {
::Focus.printNumber (k.flags); ::Focus.printNumber (k.raw);
::Focus.printSpace ();
::Focus.printNumber (k.keyCode);
} }
bool bool

Loading…
Cancel
Save