Instead of hardcoding the macro actions into the core firmware, use a `macroAction` function that is marked weak. This makes it possible to override the function from Sketches, and implement the handlers there. While there, also made sure that the `macroAction` is always called, with `keyState` argument appropriately set. With this, macro actions can trigger on keyup, or while held, or anytime the implementor wants, not just on keypress. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>pull/58/head
parent
95b2b4ea4f
commit
8b3b321c0e
Loading…
Reference in new issue