Convenience helpers for working with keyboard inputs.
These are all the keys that have names in Keyboard.Extra.
Check the pressed down state of any Key.
Gives the arrow keys' pressed down state as follows:
{ x = 0, y = 0 } when pressing no arrows.{ x =-1, y = 0 } when pressing the left arrow.{ x = 1, y = 1 } when pressing the up and right arrows.{ x = 0, y =-1 } when pressing the down, left, and right arrows.Similar to arrows, gives the W, A, S and D keys' pressed down state.
Get the full list of keys that are currently pressed down.
You will need to add this to your program's subscriptions. Otherwise Keyboard.Extra won't be able to provide any information.
You need to call this to have the model update.
The set of keys that are currently pressed down.