Library for working with keyboard input.
A signal of records indicating which arrow keys are pressed.
* { 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.
Just like the arrows signal, but this uses keys w, a, s, and d, which are common controls for many computer games.
The following signals are True when the particular key is pressed and False
otherwise.
The meta key is the Windows key on Windows and the Command key on Mac.
Whether an arbitrary key is pressed.
Set of keys that are currently down.
The latest key that has been pressed.
Type alias to make it clearer what integers are supposed to represent in this library. Use
Char.toCodeandChar.fromCodeto convert key codes to characters. Use the uppercase character withtoCode.