spice-0.1.0.2: An FRP-based game engine written in Haskell.

Safe HaskellNone
LanguageHaskell2010

FRP.Spice.Input

Description

This module provides everything relating to input in the scope of spice.

Synopsis

Documentation

data Sinks Source

A wrapper around the sinks for the mouse position, the key states, and the mouse button states.

Constructors

Sinks 

data Input Source

A container for all of the states themselves. It is used as a Signal Input in the InputContainer (which is necessary to use it within Elerea's FRP network).

data InputContainer Source

A container around Sinks and Signal Input so that one needn't pass around a tuple.

Constructors

InputContainer 

makeInputContainer :: IO InputContainer Source

Making an InputContainer filled with all necessary externals.

makeMousePositionCallback :: InputContainer -> MousePosCallback Source

Creating a callback to update the mouse position's state.

makeKeyboardCallback :: InputContainer -> KeyCallback Source

Creating a callback to update the keyboard's states.

makeMouseCallback :: InputContainer -> MouseButtonCallback Source

Creating a callback to update the mouse buttons' states.