1
0
Fork 0

Add legacy keymap support.

This commit is contained in:
tmk 2013-01-31 17:50:53 +09:00
parent e760953910
commit d95463f2e0
5 changed files with 153 additions and 40 deletions

View file

@ -358,6 +358,10 @@ static void process_action(keyrecord_t *record)
if (event.pressed) {
layer_switch(action.layer.opt);
}
//TODO: this is ok?
else {
layer_switch(default_layer);
}
break;
case 0xF0:
// tap toggle
@ -394,7 +398,10 @@ static void process_action(keyrecord_t *record)
debug("LAYER_PRESSED: Tap: unregister_code\n");
unregister_code(action.layer.code);
} else {
debug("LAYER_PRESSED: No tap: NO ACTION\n");
//debug("LAYER_PRESSED: No tap: NO ACTION\n");
//TODO: this is ok?
debug("LAYER_PRESSED: No tap: return to default layer\n");
layer_switch(default_layer);
}
}
break;