Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module FWGL.Key
- keyUp :: Key -> SF (Input a) (Event ())
- keyDown :: Key -> SF (Input a) (Event ())
- key :: Key -> SF (Input a) (Event ())
- mouseDown :: MouseButton -> SF (Input a) (Event (Int, Int))
- mouseUp :: MouseButton -> SF (Input a) (Event (Int, Int))
- mouse :: MouseButton -> SF (Input a) (Event (Int, Int))
- click :: SF (Input a) (Event (Int, Int))
- mouseMove :: SF (Input a) (Event (Int, Int))
- pointer :: SF (Input a) (Int, Int)
- resize :: SF (Input a) (Event (Int, Int))
- size :: SF (Input a) (Int, Int)
- custom :: SF (Input a) a
- data Input a = Input {
- inputEvents :: HashMap InputEvent [EventData]
- inputCustom :: a
- data InputEvent
- data EventData = EventData {
- dataFramebufferSize :: Maybe (Int, Int)
- dataPointer :: Maybe (Int, Int)
- dataButton :: Maybe MouseButton
- dataKey :: Maybe Key
Documentation
module FWGL.Key
FRP
IO
The general input.
Input | |
|
data InputEvent Source
An event.
The data carried by an event.
EventData | |
|