helm-0.1.0: A functionally reactive game engine.

Safe HaskellNone

FRP.Helm.Keyboard

Synopsis

Documentation

shift :: SignalGen (Signal Bool)Source

Whether either shift key is pressed.

ctrl :: SignalGen (Signal Bool)Source

Whether either control key is pressed.

enter :: SignalGen (Signal Bool)Source

Whether the shift key is pressed.

space :: SignalGen (Signal Bool)Source

Whether the space key is pressed.

arrows :: SignalGen (Signal (Int, Int))Source

A unit vector combined from the arrow keys. When no keys are being pressed this signal samples to (0, 0), otherwise it samples to a specific direction based on which keys are pressed. For example, pressing the left key results in (-1, 0), the down key (0, 1), etc.

wasd :: SignalGen (Signal (Int, Int))Source

Similar to the arrows signal, but uses the W, A, S and D keys instead.