gore-and-ash-glfw-1.1.1.0: Core module for Gore&Ash engine for GLFW input events

Copyright(c) Anton Gushcha, 2015-2016
LicenseBSD3
Maintainerncrashed@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Game.GoreAndAsh.GLFW.State

Description

 

Synopsis

Documentation

type KeyChannel = IORef [(Key, KeyState, ModifierKeys)] Source

Channel to connect core and callback with key states

type ButtonChannel = IORef [(MouseButton, MouseButtonState, ModifierKeys)] Source

Channel to connect core and callback with mouse button states

type MouseChannel = IORef (Double, Double) Source

Channel to connect core and callback with mouse position

type WindowSizeChannel = IORef (Maybe (Double, Double)) Source

Channel to connect core and callback with window resizing

type ScrollChannel = IORef [(Double, Double)] Source

Channel to connect core and callback with mouse scrolling

type CloseChannel = IORef Bool Source

Channel to connect core and callback for window closing

data GLFWState s Source

Module inner state

s
- State of next module, the states are chained via nesting.

Instances

Generic (GLFWState s) Source 
NFData s => NFData (GLFWState s) Source 
Monad m => MonadState (GLFWState s) (GLFWT s m) 
type Rep (GLFWState s) Source