fwgl-0.1.3.1: Game engine

Safe HaskellNone
LanguageHaskell2010

FWGL.Input

Contents

Synopsis

Documentation

module FWGL.Key

FRP

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.

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

Mouse move.

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.

IO

data Input a Source

The general input.

Constructors

Input 

data EventData Source

The data carried by an event.