Instead of always calling handle_user_key_event(), call a function pointed to by the customHandler variable. This makes it possible to override what function gets called, at run time, at very little cost. The reason for this change is to be able to change the user function into a testing one, if a magic combo is pressed, while still allowing the end-user to fully customize handle_user_key_event, and allow them to have access to the testing one too, without them doing anything special. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>pull/24/head
parent
143b0fdfe4
commit
12d8d1e3de
Loading…
Reference in new issue