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

Safe HaskellNone
LanguageHaskell2010

FWGL.Input

Synopsis

Documentation

module FWGL.Key

data Input

The general input.

Constructors

Input 

data EventData

The data carried by an event.

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

Keyboard release.

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

Keyboard press.

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

Keyboard down.

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

Mouse press.

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

Mouse release.

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

Mouse down.

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

Left click.

pointer :: SF Input (Int, Int)

Pointer location in pixels.

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

Windowframebuffercanvas/etc. resize.

size :: SF Input (Int, Int)

Windowframebuffercanvas size.