fwgl-0.1.2.0: FRP 2D/3D game engine

Safe HaskellNone
LanguageHaskell2010

FWGL.Input

Synopsis

Documentation

module FWGL.Key

data Input a Source

The general input.

Constructors

Input 

data EventData Source

The data carried by an event.

keyUp :: Key -> SF (Input a) (Event ()) Source

Keyboard release.

keyDown :: Key -> SF (Input a) (Event ()) Source

Keyboard press.

key :: Key -> SF (Input a) (Event ()) Source

Keyboard down.

mouseDown :: MouseButton -> SF (Input a) (Event (Int, Int)) Source

Mouse press.

mouseUp :: MouseButton -> SF (Input a) (Event (Int, Int)) Source

Mouse release.

mouse :: MouseButton -> SF (Input a) (Event (Int, Int)) Source

Mouse down.

click :: SF (Input a) (Event (Int, Int)) Source

Left click.

pointer :: SF (Input a) (Int, Int) Source

Pointer location in pixels.

resize :: SF (Input a) (Event (Int, Int)) Source

Windowframebuffercanvas/etc. resize.

size :: SF (Input a) (Int, Int) Source

Windowframebuffercanvas size.

custom :: SF (Input a) a Source

Custom input.