When a keyswitch has been off in the previous cycle and is still off now, do not call `handleKeyswitchEvent` on it. As an extension, when the whole column is idle, skip the whole thing. In practice, handling fully idle keys is not useful. There are many plugins which explicitly look for this case and return early, because it isn't an interesting event. As such, not calling the event handler in this case makes sense, as we save not only a few needless checks in plugins, but our performance improves greatly too. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/365/head
parent
766c61ec96
commit
7213f7577a
Loading…
Reference in new issue