[Keymap] Drashna Keymap Updates (#14842)

* Fix issues with user split transport code
* Improve OLED (More font stuff, improved keylogger, etc)
* Add `KEYLOCK` macro to disable USB, borrowed from command feature.
* Convert Kyria fully to proton C (no more AVR kyria)
* Add Work Louder Work Board keymap
This commit is contained in:
Drashna Jaelre
2021-10-15 22:30:23 -07:00
committed by GitHub
parent a8422cca03
commit 9a0addc77e
19 changed files with 1035 additions and 1053 deletions

View File

@ -18,7 +18,7 @@
#include "version.h"
uint16_t copy_paste_timer;
bool host_driver_disabled = false;
// Defines actions tor my global custom keycodes. Defined in drashna.h file
// Then runs the _keymap's record handier if not processed here
@ -198,6 +198,23 @@ bool process_record_user(uint16_t keycode, keyrecord_t *re
eeconfig_update_user(userspace_config.raw);
}
}
break;
case KEYLOCK: {
static host_driver_t *host_driver = 0;
if (record->event.pressed) {
if (host_get_driver()) {
host_driver = host_get_driver();
clear_keyboard();
host_set_driver(0);
host_driver_disabled = true;
} else {
host_set_driver(host_driver);
host_driver_disabled = false;
}
}
break;
}
#endif
}
return true;