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) {
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

Loading…
Cancel
Save