This allows components to dispatch KEY_DOWN and KEY_UP events. Tested with HTML5 and C++ on Windows.
Other changes this pull request makes:
onKeyDown and onKeyUp variables added for the text input classes, required for detecting when a key is pressed or released while a text input has focus, since the event only dispatches to the text input instead of the stage
Callback class in MouseHelper is renamed to MouseCallback, since there is now also a callback class in KeyboardHelper
Demonstration with the "Todos" example from the component explorer:
This allows components to dispatch KEY_DOWN and KEY_UP events. Tested with HTML5 and C++ on Windows.
Other changes this pull request makes:
onKeyDown
andonKeyUp
variables added for the text input classes, required for detecting when a key is pressed or released while a text input has focus, since the event only dispatches to the text input instead of the stageCallback
class inMouseHelper
is renamed toMouseCallback
, since there is now also a callback class inKeyboardHelper
Demonstration with the "Todos" example from the component explorer:
https://github.com/haxeui/haxeui-flixel/assets/85134252/6b77ee3f-8c2d-42c7-8ab8-cb73f595b3c1