- changed KBFUN_FUNCTION_ARGS again - changed kbfun's - condensed `kbfun_press()` and `kbfun_release()` to `kbfun_press_release()` - added `kbfun_toggle()`, which toggles keycodes on or off - added `kbfun_layer_inc_dec_press_release()` which is like ...press_release(), except it increments the layer first (and decrements it on keyrelease) - added `_kbfun_exec_key()` (which is a public kbfun*(), but not for assignment to keycodes) for convenience. used by main(), and currently 1 of the kbfun*()s. it doesn't save a lot of code, but i think it makes things slightly easier to read. not quite as elegant a solution as i'd like, but it might have to do - changed keymap accordingly - changed main() - now using `_kbfun_exec_key()` (instead of essentially inlining the code) - now sending the USB report once every cycle. i was sending once for every keypress (lol, by mistake: what i meant to do was only send it if any keys had been pressed). |
||
---|---|---|
.. | ||
qwerty.c | ||
qwerty.h |