Open premek opened 2 years ago
I cannot seem to find an on_key_up, on_key_release or some equivalent
on_key_up
on_key_release
on_key_down triggers when key is pressed down, and then repeatedly when the key is being held.
on_key_down
How to detect if a key was released? Or how to query if a given key is pressed or not at the given time?
Last I looked key and other events were propagated using window.eventbus.publish. I don't think this was intended as an official interface but have a look at it
window.eventbus.publish
I cannot seem to find an
on_key_up
,on_key_release
or some equivalenton_key_down
triggers when key is pressed down, and then repeatedly when the key is being held.How to detect if a key was released? Or how to query if a given key is pressed or not at the given time?