|
Graphics.UI.SDL.Events | Portability | portable | Stability | provisional | Maintainer | lemmih@gmail.com |
|
|
|
Description |
|
|
Synopsis |
|
|
|
Documentation |
|
|
High level event structure.
| Constructors | NoEvent | | GotFocus [Focus] | | LostFocus [Focus] | | KeyDown !Keysym | | KeyUp !Keysym | | MouseMotion !Word16 !Word16 !Word16 !Word16 | | MouseButtonDown !Word16 !Word16 !MouseButton | | MouseButtonUp !Word16 !Word16 !MouseButton | | JoyAxisMotion !Word8 !Word8 !Int16 | device index, axis index, axis value.
| JoyBallMotion !Word8 !Word8 !Int16 !Int16 | device index, trackball index, relative motion.
| JoyHatMotion !Word8 !Word8 !Word8 | device index, hat index, hat position.
| JoyButtonDown !Word8 !Word8 | device index, button index.
| JoyButtonUp !Word8 !Word8 | device index, button index.
| VideoResize !Int !Int | When Resizable is passed as a flag to setVideoMode the user is
allowed to resize the applications window. When the window is resized
an VideoResize is reported, with the new window width and height values.
When an VideoResize is recieved the window should be resized to the
new dimensions using setVideoMode.
| VideoExpose | A VideoExpose event is triggered when the screen has been modified
outside of the application, usually by the window manager and needs to be redrawn.
| Quit | | User !UserEventID !Int !(Ptr ()) !(Ptr ()) | | Unknown | |
| Instances | |
|
|
|
Low level event structure keeping a one-to-one relation with the C event structure.
| Constructors | SDLNoEvent | | SDLActiveEvent | | SDLKeyDown | | SDLKeyUp | | SDLMouseMotion | | SDLMouseButtonDown | | SDLMouseButtonUp | | SDLJoyAxisMotion | | SDLJoyBallMotion | | SDLJoyHatMotion | | SDLJoyButtonDown | | SDLJoyButtonUp | | SDLQuit | | SDLSysWMEvent | | SDLVideoResize | | SDLVideoExpose | | SDLUserEvent Word8 | | SDLNumEvents | |
| Instances | |
|
|
|
Typed user events ranging from 0 to 7
| Constructors | UID0 | | UID1 | | UID2 | | UID3 | | UID4 | | UID5 | | UID6 | | UID7 | |
| Instances | |
|
|
|
Constructors | ButtonLeft | | ButtonMiddle | | ButtonRight | | ButtonWheelUp | | ButtonWheelDown | |
| Instances | |
|
|
|
Constructors | MouseFocus | | InputFocus | | ApplicationFocus | |
| Instances | |
|
|
|
Constructs a safe pointer from an arbitrary value.
|
|
|
Get object from a safe pointer. Nothing on type mismatch.
|
|
|
Get object from a safe pointer. Throws an exception on type mismatch.
|
|
|
Return the type of the object the safe pointer was created from.
|
|
|
:: Int | Initial delay. 0 to disable.
| -> Int | Interval.
| -> IO Bool | | Sets keyboard repeat rate. Returns False on error.
|
|
|
|
Enables or disables unicode translation.
|
|
|
Returns the current state of unicode translation. See also enableUnicode.
|
|
|
Gets the name of an SDL virtual keysym.
|
|
|
Retrieves the current state of the mouse. Returns (X position, Y position, pressed buttons).
|
|
|
Retrieve the current state of the mouse. Like getMouseState except that X and Y are
set to the change since last call to getRelativeMouseState.
|
|
|
Gets the state of modifier keys.
|
|
|
Sets the internal state of modifier keys.
|
|
|
Pushes an event onto the event queue. Returns False on error.
|
|
|
Pushes an event onto the event queue. Throws an exception on error.
|
|
|
Polls for currently pending events.
|
|
|
Waits indefinitely for the next available event.
|
|
|
Waits indefinitely for the next available event. Blocks Haskell threads.
|
|
|
Pumps the event loop, gathering events from the input devices.
|
|
|
Enable or disable events from being processed.
|
|
|
Checks current state of a event. See also enableEvent.
|
|
|
Gets the state of the application.
|
|
Produced by Haddock version 0.8 |