keyTyped vs keyReleased
fuh-Q opened this issue · 2 comments
fuh-Q commented
What exactly does it mean for a key to be "typed" versus just using keyRelease? Are there use cases where I should be using specifically one or the other?
kwhat commented
Key down is when the key is install depressed and will "bounce" if held.
Key types events are produced directly after key up and will also bounce.
Key types events are for looking at the char produced by the key down
event. For example, lower or upper A was produced by the OS. This is how
languages and all kinds of things are supposed to work.
Key up events are just like key down events but they do not bounce.
Unless your interested in the char typed you probably want key up/ down.
…On Fri, Jan 13, 2023, 8:18 AM gdkid ***@***.***> wrote:
What exactly does it mean for a key to be "typed" versus just using
keyRelease? Are there use cases where I should be using specifically one or
the other?
—
Reply to this email directly, view it on GitHub
<#433>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFFCRA6H45URTSQ2S6E3BTWSF56XANCNFSM6AAAAAAT2SQIRY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
fuh-Q commented
Ah okay, thanks 👍