OneShot has a convenient way to tell us if any OneShot keys are active: `OneShot.isActive()`. Thus, if we are using oneshots only, we can skip scanning the whole keymap if no one-shots are active, saving us a whole lot of time per cycle we would be spending needlessly. The optimization is off by default, and must be turned on by the user's sketch. Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>pull/389/head
parent
2765bca10b
commit
b3e1f73546
Loading…
Reference in new issue