| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
EventLoop.Input
- data InputEvent
- data Keyboard = KeyPress KeyboardButton
- type KeyboardButton = [Char]
- data Mouse
- data MouseButton
- data SystemMessageIn
- = Setup
- | Background
- | Time
Documentation
data InputEvent Source
The central InputEvent type.
Constructors
| InMouse Mouse | A |
| InKeyboard Keyboard | A |
| InSysMessage SystemMessageIn | A |
Datatype to express the different Keyboard events.
Constructors
| KeyPress KeyboardButton |
type KeyboardButton = [Char] Source
Type to express how a KeyboardButton is modelled.
Datatype to express the different Mouse events.
The Pos expresses where on the screen the event happened.
The Element expresses on which top element on screen the event happened. The Element value is the name of the GObject.
Constructors
| MouseClick MouseButton Pos Element | Expresses a complete |
| MouseUp MouseButton Pos Element | Expresses when a |
| MouseDown MouseButton Pos Element | Expresses when a |
data SystemMessageIn Source
The different possible SystemMessageIns.
Constructors
| Setup | A request for the |
| Background | A request for the |
| Time | When a timer has been spawn, each 'tick' a |