Page 1 of 1

KeyBoard and Mouse Events / Custom Bindings

Posted: Fri Jun 13, 2014 9:23 pm
by nullvoid
Either add onKeyPress/onKeyDown/onKeyUp events that provide the key that was pressed,
and/or supply similar events, but have it so that key is choosable in in the options.

e.g. registerHotKey("eventNameHere", "DefaultKey", {"up", "down", "pressed"}),
which would then provide the requested events for whatever key the player chooses.

Obviously, it would also be useful for there to be events for mouse clicks.

p.s. I did a quick search for existing topics, didn't find any. apologies if my search-fu is weak.