Poll for currently pending events. You can only call this function in the OS thread that set the video mode.
Modulesdl2-2.5.5.0Haskell2010
SDL.Event
SDL.Event exports an interface for working with the SDL event model. Event handling allows your application to receive input from the user. Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like pollEvent and waitEvent you can observe and handle waiting input events.
The event queue itself is composed of a series of Event values, one for each waiting event. Event values are read from the queue with the pollEvent function and it is then up to the application to process the information stored with them.
- 47 types
- 10 values
- Packagesdl2-2.5.5.0
- Exports57
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceEvent.hs
Polling events
6 declarationsClear the event queue by polling for all pending events.
Like pollEvent this function should only be called in the OS thread which set the video mode.
Run a monadic computation, accumulating over all known Events.
This can be useful when used with a state monad, allowing you to fold all events together.
Pump the event loop, gathering events from the input devices.
This function updates the event queue and internal input device state.
This should only be run in the OS thread that initialized the video subsystem, and for extra safety, you should consider only doing those things on the main thread in any case.
pumpEvents gathers all the pending input information from devices and places it in the event queue. Without calls to pumpEvents no events would ever be placed on the queue. Often the need for calls to pumpEvents is hidden from the user since pollEvent and waitEvent implicitly call pumpEvents. However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call pumpEvents to force an event queue update.
See SDL_PumpEvents for C documentation.
Wait indefinitely for the next available event.
waitEventTimeout Wait until the specified timeout for the next available amount.
Registering user events
5 declarationsA user defined event structure that has been registered with SDL.
Use registerEvent, below, to obtain an instance.
Constructors
RegisteredEventTypepushRegisteredEvent :: a -> IO EventPushResultgetRegisteredEvent :: Event -> IO (Maybe a)
A record used to convert between SDL Events and user-defined data structures.
Used for registerEvent, below.
Constructors
RegisteredEventDataregisteredEventWindow :: !Maybe WindowThe associated Window.
registeredEventCode :: !Int32User defined event code.
registeredEventData1 :: !Ptr ()User defined data pointer.
registeredEventData2 :: !Ptr ()User defined data pointer.
Instances5Eq, Ord, Show, Generic, Rep
Eq RegisteredEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd RegisteredEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow RegisteredEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric RegisteredEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep RegisteredEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"RegisteredEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"RegisteredEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"registeredEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"registeredEventCode"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int32)) :*: (S1 ('MetaSel ('Just"registeredEventData1"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Ptr ())) :*: S1 ('MetaSel ('Just"registeredEventData2"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Ptr ())))))
Possible results of an attempted push of an event to the queue.
Instances7Eq, Data, Ord, Read, Show, Generic, …
Eq EventPushResultDefined in sdl2-2.5.5.0 · SDL.EventData EventPushResultDefined in sdl2-2.5.5.0 · SDL.EventOrd EventPushResultDefined in sdl2-2.5.5.0 · SDL.EventRead EventPushResultDefined in sdl2-2.5.5.0 · SDL.EventShow EventPushResultDefined in sdl2-2.5.5.0 · SDL.EventGeneric EventPushResultDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep EventPushResult = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"EventPushResult"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"EventPushSuccess"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"EventPushFiltered"
'PrefixI 'False) U1 :+: C1 ('MetaCons"EventPushFailure"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))
A registered event with no associated data.
This is a resonable baseline to modify for converting to RegisteredEventData.
Register a new event type with SDL.
Provide functions that convert between UserEventData and your structure. You can then use pushRegisteredEvent to add a custom event of the registered type to the queue, and getRegisteredEvent to test for such events in the main loop.
Watching events
4 declarationsAn EventWatchCallback can process and respond to an event when it is added to the event queue.
Trigger an EventWatchCallback when an event is added to the SDL event queue.
See https://wiki.libsdl.org/SDL_AddEventWatch for C documentation.
Remove an EventWatch.
See https://wiki.libsdl.org/SDL_DelEventWatch for C documentation.
Event data
3 declarationsA single SDL event. This event occurred at eventTimestamp and carries data under eventPayload.
Constructors
EventeventTimestamp :: TimestampThe time the event occurred.
eventPayload :: EventPayloadData pertaining to this event.
Instances5Eq, Ord, Show, Generic, Rep
Eq EventDefined in sdl2-2.5.5.0 · SDL.EventOrd EventDefined in sdl2-2.5.5.0 · SDL.EventShow EventDefined in sdl2-2.5.5.0 · SDL.EventGeneric EventDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep Event = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"Event"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"Event"
'PrefixI 'True) (S1 ('MetaSel ('Just"eventTimestamp"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Timestamp) :*: S1 ('MetaSel ('Just"eventPayload"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventPayload)))
An enumeration of all possible SDL event types. This data type pairs up event types with their payload, where possible.
Constructors
WindowShownEvent !WindowShownEventDataWindowHiddenEvent !WindowHiddenEventDataWindowExposedEvent !WindowExposedEventDataWindowMovedEvent !WindowMovedEventDataWindowResizedEvent !WindowResizedEventDataWindowSizeChangedEvent !WindowSizeChangedEventDataWindowMinimizedEvent !WindowMinimizedEventDataWindowMaximizedEvent !WindowMaximizedEventDataWindowRestoredEvent !WindowRestoredEventDataWindowGainedMouseFocusEvent !WindowGainedMouseFocusEventDataWindowLostMouseFocusEvent !WindowLostMouseFocusEventDataWindowGainedKeyboardFocusEvent !WindowGainedKeyboardFocusEventDataWindowLostKeyboardFocusEvent !WindowLostKeyboardFocusEventDataWindowClosedEvent !WindowClosedEventDataKeyboardEvent !KeyboardEventDataTextEditingEvent !TextEditingEventDataTextInputEvent !TextInputEventDataKeymapChangedEventMouseMotionEvent !MouseMotionEventDataMouseButtonEvent !MouseButtonEventDataMouseWheelEvent !MouseWheelEventDataJoyAxisEvent !JoyAxisEventDataJoyBallEvent !JoyBallEventDataJoyHatEvent !JoyHatEventDataJoyButtonEvent !JoyButtonEventDataJoyDeviceEvent !JoyDeviceEventDataControllerAxisEvent !ControllerAxisEventDataControllerButtonEvent !ControllerButtonEventDataControllerDeviceEvent !ControllerDeviceEventDataAudioDeviceEvent !AudioDeviceEventDataQuitEventUserEvent !UserEventDataSysWMEvent !SysWMEventDataTouchFingerEvent !TouchFingerEventDataTouchFingerMotionEvent !TouchFingerMotionEventDataMultiGestureEvent !MultiGestureEventDataDollarGestureEvent !DollarGestureEventDataDropEvent !DropEventDataClipboardUpdateEventUnknownEvent !UnknownEventData
Instances5Eq, Ord, Show, Generic, Rep
Eq EventPayloadDefined in sdl2-2.5.5.0 · SDL.EventOrd EventPayloadDefined in sdl2-2.5.5.0 · SDL.EventShow EventPayloadDefined in sdl2-2.5.5.0 · SDL.EventGeneric EventPayloadDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep EventPayload = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"EventPayload"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (((((C1 ('MetaCons"WindowShownEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowShownEventData)) :+: C1 ('MetaCons"WindowHiddenEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowHiddenEventData))) :+: (C1 ('MetaCons"WindowExposedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowExposedEventData)) :+: (C1 ('MetaCons"WindowMovedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowMovedEventData)) :+: C1 ('MetaCons"WindowResizedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowResizedEventData))))) :+: ((C1 ('MetaCons"WindowSizeChangedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowSizeChangedEventData)) :+: C1 ('MetaCons"WindowMinimizedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowMinimizedEventData))) :+: (C1 ('MetaCons"WindowMaximizedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowMaximizedEventData)) :+: (C1 ('MetaCons"WindowRestoredEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowRestoredEventData)) :+: C1 ('MetaCons"WindowGainedMouseFocusEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowGainedMouseFocusEventData)))))) :+: (((C1 ('MetaCons"WindowLostMouseFocusEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowLostMouseFocusEventData)) :+: C1 ('MetaCons"WindowGainedKeyboardFocusEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowGainedKeyboardFocusEventData))) :+: (C1 ('MetaCons"WindowLostKeyboardFocusEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowLostKeyboardFocusEventData)) :+: (C1 ('MetaCons"WindowClosedEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 WindowClosedEventData)) :+: C1 ('MetaCons"KeyboardEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 KeyboardEventData))))) :+: ((C1 ('MetaCons"TextEditingEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TextEditingEventData)) :+: C1 ('MetaCons"TextInputEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TextInputEventData))) :+: (C1 ('MetaCons"KeymapChangedEvent"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"MouseMotionEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseMotionEventData)) :+: C1 ('MetaCons"MouseButtonEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseButtonEventData))))))) :+: ((((C1 ('MetaCons"MouseWheelEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseWheelEventData)) :+: C1 ('MetaCons"JoyAxisEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoyAxisEventData))) :+: (C1 ('MetaCons"JoyBallEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyBallEventData)) :+: (C1 ('MetaCons"JoyHatEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyHatEventData)) :+: C1 ('MetaCons"JoyButtonEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyButtonEventData))))) :+: ((C1 ('MetaCons"JoyDeviceEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyDeviceEventData)) :+: C1 ('MetaCons"ControllerAxisEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerAxisEventData))) :+: (C1 ('MetaCons"ControllerButtonEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerButtonEventData)) :+: (C1 ('MetaCons"ControllerDeviceEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerDeviceEventData)) :+: C1 ('MetaCons"AudioDeviceEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AudioDeviceEventData)))))) :+: (((C1 ('MetaCons"QuitEvent"
'PrefixI 'False) U1 :+: C1 ('MetaCons"UserEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UserEventData))) :+: (C1 ('MetaCons"SysWMEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 SysWMEventData)) :+: (C1 ('MetaCons"TouchFingerEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchFingerEventData)) :+: C1 ('MetaCons"TouchFingerMotionEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchFingerMotionEventData))))) :+: ((C1 ('MetaCons"MultiGestureEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MultiGestureEventData)) :+: C1 ('MetaCons"DollarGestureEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DollarGestureEventData))) :+: (C1 ('MetaCons"DropEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 DropEventData)) :+: (C1 ('MetaCons"ClipboardUpdateEvent"
'PrefixI 'False) U1 :+: C1 ('MetaCons"UnknownEvent"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 UnknownEventData))))))))
Window events
A window has been shown.
Constructors
WindowShownEventDatawindowShownEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowShownEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowShownEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowShownEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowShownEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowShownEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowShownEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowShownEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowShownEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
A window has been hidden.
Constructors
WindowHiddenEventDatawindowHiddenEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowHiddenEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowHiddenEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowHiddenEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowHiddenEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowHiddenEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowHiddenEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowHiddenEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowHiddenEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
A part of a window has been exposed - where exposure means to become visible (for example, an overlapping window no longer overlaps with the window).
Constructors
WindowExposedEventDatawindowExposedEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowExposedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowExposedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowExposedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowExposedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowExposedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowExposedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowExposedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowExposedEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
A Window has been moved.
Constructors
WindowMovedEventDatawindowMovedEventWindow :: !WindowThe associated Window.
windowMovedEventPosition :: !Point V2 Int32The new position of the Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowMovedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowMovedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowMovedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowMovedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowMovedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowMovedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"WindowMovedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowMovedEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Window) :*: S1 ('MetaSel ('Just"windowMovedEventPosition"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 Int32))))
Window has been resized. This is event is always preceded by WindowSizeChangedEvent.
Constructors
WindowResizedEventDatawindowResizedEventWindow :: !WindowThe associated Window.
windowResizedEventSize :: !V2 Int32The new size of the Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowResizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowResizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowResizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowResizedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowResizedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowResizedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"WindowResizedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowResizedEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Window) :*: S1 ('MetaSel ('Just"windowResizedEventSize"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int32))))
The window size has changed, either as a result of an API call or through the system or user changing the window size; this event is followed by WindowResizedEvent if the size was changed by an external event, i.e. the user or the window manager.
Constructors
WindowSizeChangedEventDatawindowSizeChangedEventWindow :: !WindowThe associated Window.
windowSizeChangedEventSize :: !V2 Int32The new size of the Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowSizeChangedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowSizeChangedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowSizeChangedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowSizeChangedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowSizeChangedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowSizeChangedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"WindowSizeChangedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowSizeChangedEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Window) :*: S1 ('MetaSel ('Just"windowSizeChangedEventSize"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int32))))
The window has been minimized.
Constructors
WindowMinimizedEventDatawindowMinimizedEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowMinimizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowMinimizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowMinimizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowMinimizedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowMinimizedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowMinimizedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowMinimizedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowMinimizedEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has been maximized.
Constructors
WindowMaximizedEventDatawindowMaximizedEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowMaximizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowMaximizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowMaximizedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowMaximizedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowMaximizedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowMaximizedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowMaximizedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowMaximizedEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has been restored to normal size and position.
Constructors
WindowRestoredEventDatawindowRestoredEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowRestoredEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowRestoredEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowRestoredEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowRestoredEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowRestoredEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowRestoredEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowRestoredEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowRestoredEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has gained mouse focus.
Constructors
WindowGainedMouseFocusEventDatawindowGainedMouseFocusEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowGainedMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowGainedMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowGainedMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowGainedMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowGainedMouseFocusEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowGainedMouseFocusEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowGainedMouseFocusEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowGainedMouseFocusEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has lost mouse focus.
Constructors
WindowLostMouseFocusEventDatawindowLostMouseFocusEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowLostMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowLostMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowLostMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowLostMouseFocusEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowLostMouseFocusEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowLostMouseFocusEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowLostMouseFocusEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowLostMouseFocusEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has gained keyboard focus.
Constructors
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowGainedKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowGainedKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowGainedKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowGainedKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowGainedKeyboardFocusEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowGainedKeyboardFocusEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowGainedKeyboardFocusEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowGainedKeyboardFocusEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window has lost keyboard focus.
Constructors
WindowLostKeyboardFocusEventDatawindowLostKeyboardFocusEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowLostKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowLostKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowLostKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowLostKeyboardFocusEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowLostKeyboardFocusEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowLostKeyboardFocusEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowLostKeyboardFocusEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowLostKeyboardFocusEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
The window manager requests that the window be closed.
Constructors
WindowClosedEventDatawindowClosedEventWindow :: WindowThe associated Window.
Instances5Eq, Ord, Show, Generic, Rep
Eq WindowClosedEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd WindowClosedEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow WindowClosedEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric WindowClosedEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep WindowClosedEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"WindowClosedEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"WindowClosedEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"windowClosedEventWindow"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Window)))
A video driver dependent system event
Constructors
Instances5Eq, Ord, Show, Generic, Rep
Eq SysWMEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd SysWMEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow SysWMEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric SysWMEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep SysWMEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"SysWMEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"SysWMEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"sysWMEventMsg"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SysWMmsg)))
Keyboard events
A keyboard key has been pressed or released.
Constructors
KeyboardEventDatakeyboardEventWindow :: !Maybe WindowThe Window with keyboard focus, if any.
keyboardEventKeyMotion :: !InputMotionWhether the key was pressed or released.
keyboardEventRepeat :: !BoolTrue if this is a repeating key press from the user holding the key down.
keyboardEventKeysym :: !KeysymA description of the key that this event pertains to.
Instances5Eq, Ord, Show, Generic, Rep
Eq KeyboardEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd KeyboardEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow KeyboardEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric KeyboardEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep KeyboardEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"KeyboardEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"KeyboardEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"keyboardEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"keyboardEventKeyMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InputMotion)) :*: (S1 ('MetaSel ('Just"keyboardEventRepeat"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just"keyboardEventKeysym"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Keysym))))
Keyboard text editing event information.
Constructors
TextEditingEventDatatextEditingEventWindow :: !Maybe WindowThe Window with keyboard focus, if any.
textEditingEventText :: !TextThe editing text.
textEditingEventStart :: !Int32The location to begin editing from.
textEditingEventLength :: !Int32The number of characters to edit from the start point.
Instances5Eq, Ord, Show, Generic, Rep
Eq TextEditingEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd TextEditingEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow TextEditingEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric TextEditingEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep TextEditingEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"TextEditingEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"TextEditingEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"textEditingEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"textEditingEventText"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just"textEditingEventStart"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int32) :*: S1 ('MetaSel ('Just"textEditingEventLength"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int32))))
Keyboard text input event information.
Constructors
TextInputEventDatatextInputEventWindow :: !Maybe WindowThe Window with keyboard focus, if any.
textInputEventText :: !TextThe input text.
Instances5Eq, Ord, Show, Generic, Rep
Eq TextInputEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd TextInputEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow TextInputEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric TextInputEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep TextInputEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"TextInputEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"TextInputEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"textInputEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"textInputEventText"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))
Mouse events
A mouse or pointer device was moved.
Constructors
MouseMotionEventDatamouseMotionEventWindow :: !Maybe WindowThe Window with mouse focus, if any.
mouseMotionEventWhich :: !MouseDeviceThe MouseDevice that was moved.
mouseMotionEventState :: ![MouseButton]A collection of MouseButtons that are currently held down.
mouseMotionEventPos :: !Point V2 Int32The new position of the mouse.
mouseMotionEventRelMotion :: !V2 Int32The relative mouse motion of the mouse.
Instances5Eq, Ord, Show, Generic, Rep
Eq MouseMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd MouseMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow MouseMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric MouseMotionEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep MouseMotionEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"MouseMotionEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"MouseMotionEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"mouseMotionEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"mouseMotionEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseDevice)) :*: (S1 ('MetaSel ('Just"mouseMotionEventState"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [MouseButton]) :*: (S1 ('MetaSel ('Just"mouseMotionEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 Int32)) :*: S1 ('MetaSel ('Just"mouseMotionEventRelMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int32))))))
A mouse or pointer device button was pressed or released.
Constructors
MouseButtonEventDatamouseButtonEventWindow :: !Maybe WindowThe Window with mouse focus, if any.
mouseButtonEventMotion :: !InputMotionWhether the button was pressed or released.
mouseButtonEventWhich :: !MouseDeviceThe MouseDevice whose button was pressed or released.
mouseButtonEventButton :: !MouseButtonThe button that was pressed or released.
mouseButtonEventClicks :: !Word8The amount of clicks. 1 for a single-click, 2 for a double-click, etc.
mouseButtonEventPos :: !Point V2 Int32The coordinates of the mouse click.
Instances5Eq, Ord, Show, Generic, Rep
Eq MouseButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd MouseButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow MouseButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric MouseButtonEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep MouseButtonEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"MouseButtonEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"MouseButtonEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"mouseButtonEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: (S1 ('MetaSel ('Just"mouseButtonEventMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InputMotion) :*: S1 ('MetaSel ('Just"mouseButtonEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseDevice))) :*: (S1 ('MetaSel ('Just"mouseButtonEventButton"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseButton) :*: (S1 ('MetaSel ('Just"mouseButtonEventClicks"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8) :*: S1 ('MetaSel ('Just"mouseButtonEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 Int32))))))
Mouse wheel event information.
Constructors
MouseWheelEventDatamouseWheelEventWindow :: !Maybe WindowThe Window with mouse focus, if any.
mouseWheelEventWhich :: !MouseDeviceThe MouseDevice whose wheel was scrolled.
mouseWheelEventPos :: !V2 Int32The amount scrolled.
mouseWheelEventDirection :: !MouseScrollDirectionThe scroll direction mode.
Instances5Eq, Ord, Show, Generic, Rep
Eq MouseWheelEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd MouseWheelEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow MouseWheelEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric MouseWheelEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep MouseWheelEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"MouseWheelEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"MouseWheelEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"mouseWheelEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just"mouseWheelEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseDevice)) :*: (S1 ('MetaSel ('Just"mouseWheelEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int32)) :*: S1 ('MetaSel ('Just"mouseWheelEventDirection"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseScrollDirection))))
Joystick events
Joystick axis motion event information
Constructors
JoyAxisEventDatajoyAxisEventWhich :: !JoystickIDThe instance id of the joystick that reported the event.
joyAxisEventAxis :: !Word8The index of the axis that changed.
joyAxisEventValue :: !Int16The current position of the axis, ranging between -32768 and 32767.
Instances5Eq, Ord, Show, Generic, Rep
Eq JoyAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd JoyAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow JoyAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric JoyAxisEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep JoyAxisEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"JoyAxisEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"JoyAxisEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"joyAxisEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"joyAxisEventAxis"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8) :*: S1 ('MetaSel ('Just"joyAxisEventValue"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int16))))
Joystick trackball motion event information.
Constructors
JoyBallEventDatajoyBallEventWhich :: !JoystickIDThe instance id of the joystick that reported the event.
joyBallEventBall :: !Word8The index of the trackball that changed.
joyBallEventRelMotion :: !V2 Int16The relative motion of the trackball.
Instances5Eq, Ord, Show, Generic, Rep
Eq JoyBallEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd JoyBallEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow JoyBallEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric JoyBallEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep JoyBallEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"JoyBallEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"JoyBallEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"joyBallEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"joyBallEventBall"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8) :*: S1 ('MetaSel ('Just"joyBallEventRelMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int16)))))
Joystick hat position change event information
Constructors
JoyHatEventDatajoyHatEventWhich :: !JoystickIDThe instance id of the joystick that reported the event.
joyHatEventHat :: !Word8The index of the hat that changed.
joyHatEventValue :: !JoyHatPositionThe new position of the hat.
Instances5Eq, Ord, Show, Generic, Rep
Eq JoyHatEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd JoyHatEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow JoyHatEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric JoyHatEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep JoyHatEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"JoyHatEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"JoyHatEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"joyHatEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"joyHatEventHat"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8) :*: S1 ('MetaSel ('Just"joyHatEventValue"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyHatPosition))))
Joystick button event information.
Constructors
JoyButtonEventDatajoyButtonEventWhich :: !JoystickIDThe instance id of the joystick that reported the event.
joyButtonEventButton :: !Word8The index of the button that changed.
joyButtonEventState :: !JoyButtonStateThe state of the button.
Instances5Eq, Ord, Show, Generic, Rep
Eq JoyButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd JoyButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow JoyButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric JoyButtonEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep JoyButtonEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"JoyButtonEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"JoyButtonEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"joyButtonEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"joyButtonEventButton"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8) :*: S1 ('MetaSel ('Just"joyButtonEventState"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyButtonState))))
Joystick device event information.
Constructors
JoyDeviceEventDatajoyDeviceEventConnection :: !JoyDeviceConnectionWas the device added or removed?
joyDeviceEventWhich :: !JoystickIDThe instance id of the joystick that reported the event.
Instances5Eq, Ord, Show, Generic, Rep
Eq JoyDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd JoyDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow JoyDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric JoyDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep JoyDeviceEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"JoyDeviceEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"JoyDeviceEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"joyDeviceEventConnection"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyDeviceConnection) :*: S1 ('MetaSel ('Just"joyDeviceEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID)))
Controller events
Game controller axis motion event information.
Constructors
ControllerAxisEventDatacontrollerAxisEventWhich :: !JoystickIDThe joystick instance ID that reported the event.
controllerAxisEventAxis :: !ControllerAxisThe index of the axis.
controllerAxisEventValue :: !Int16The axis value ranging between -32768 and 32767.
Instances5Eq, Ord, Show, Generic, Rep
Eq ControllerAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd ControllerAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow ControllerAxisEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric ControllerAxisEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep ControllerAxisEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"ControllerAxisEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"ControllerAxisEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"controllerAxisEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"controllerAxisEventAxis"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerAxis) :*: S1 ('MetaSel ('Just"controllerAxisEventValue"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int16))))
Game controller button event information
Constructors
ControllerButtonEventDatacontrollerButtonEventWhich :: !JoystickIDThe joystick instance ID that reported the event.
controllerButtonEventButton :: !ControllerButtonThe controller button.
controllerButtonEventState :: !ControllerButtonStateThe state of the button.
Instances5Eq, Ord, Show, Generic, Rep
Eq ControllerButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd ControllerButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow ControllerButtonEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric ControllerButtonEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep ControllerButtonEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"ControllerButtonEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"ControllerButtonEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"controllerButtonEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just"controllerButtonEventButton"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerButton) :*: S1 ('MetaSel ('Just"controllerButtonEventState"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerButtonState))))
Controller device event information
Constructors
ControllerDeviceEventDatacontrollerDeviceEventConnection :: !ControllerDeviceConnectionWas the device added, removed, or remapped?
controllerDeviceEventWhich :: !JoystickIDThe joystick instance ID that reported the event.
Instances5Eq, Ord, Show, Generic, Rep
Eq ControllerDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd ControllerDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow ControllerDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric ControllerDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep ControllerDeviceEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"ControllerDeviceEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"ControllerDeviceEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"controllerDeviceEventConnection"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerDeviceConnection) :*: S1 ('MetaSel ('Just"controllerDeviceEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 JoystickID)))
Audio events
Constructors
AudioDeviceEventDataaudioDeviceEventIsAddition :: !BoolIf the audio device is an addition, or a removal.
audioDeviceEventWhich :: !Word32The audio device ID that reported the event.
audioDeviceEventIsCapture :: !BoolIf the audio device is a capture device.
Instances5Eq, Ord, Show, Generic, Rep
Eq AudioDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd AudioDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow AudioDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric AudioDeviceEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep AudioDeviceEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"AudioDeviceEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"AudioDeviceEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"audioDeviceEventIsAddition"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just"audioDeviceEventWhich"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word32) :*: S1 ('MetaSel ('Just"audioDeviceEventIsCapture"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))
User events
Event data for application-defined events.
Constructors
UserEventDatauserEventType :: !Word32User defined event type.
userEventWindow :: !Maybe WindowThe associated Window.
userEventCode :: !Int32User defined event code.
userEventData1 :: !Ptr ()User defined data pointer.
userEventData2 :: !Ptr ()User defined data pointer.
Instances5Eq, Ord, Show, Generic, Rep
Eq UserEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd UserEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow UserEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric UserEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep UserEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"UserEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"UserEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"userEventType"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word32) :*: S1 ('MetaSel ('Just"userEventWindow"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window))) :*: (S1 ('MetaSel ('Just"userEventCode"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int32) :*: (S1 ('MetaSel ('Just"userEventData1"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Ptr ())) :*: S1 ('MetaSel ('Just"userEventData2"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Ptr ()))))))
Touch events
Finger touch event information.
Constructors
TouchFingerEventDatatouchFingerEventTouchID :: !TouchIDThe touch device index.
touchFingerEventFingerID :: !FingerIDThe finger index.
touchFingerEventMotion :: !InputMotionWhether the finger was pressed or released.
touchFingerEventPos :: !Point V2 CFloatThe location of the touch event, normalized between 0 and 1.
touchFingerEventPressure :: !CFloatThe quantity of the pressure applied, normalized between 0 and 1.
Instances5Eq, Ord, Show, Generic, Rep
Eq TouchFingerEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd TouchFingerEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow TouchFingerEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric TouchFingerEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep TouchFingerEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"TouchFingerEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"TouchFingerEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"touchFingerEventTouchID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TouchID) :*: S1 ('MetaSel ('Just"touchFingerEventFingerID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 FingerID)) :*: (S1 ('MetaSel ('Just"touchFingerEventMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InputMotion) :*: (S1 ('MetaSel ('Just"touchFingerEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat)) :*: S1 ('MetaSel ('Just"touchFingerEventPressure"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CFloat)))))
Finger motion event information.
Constructors
TouchFingerMotionEventDatatouchFingerMotionEventTouchID :: !TouchIDThe touch device index.
touchFingerMotionEventFingerID :: !FingerIDThe finger index.
touchFingerMotionEventPos :: !Point V2 CFloatThe location of the touch event, normalized between 0 and 1.
touchFingerMotionEventRelMotion :: !V2 CFloatThe distance moved, normalized between -1 and 1.
touchFingerMotionEventPressure :: !CFloatThe quantity of the pressure applied, normalized between 0 and 1.
Instances5Eq, Ord, Show, Generic, Rep
Eq TouchFingerMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd TouchFingerMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow TouchFingerMotionEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric TouchFingerMotionEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep TouchFingerMotionEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"TouchFingerMotionEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"TouchFingerMotionEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"touchFingerMotionEventTouchID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TouchID) :*: S1 ('MetaSel ('Just"touchFingerMotionEventFingerID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 FingerID)) :*: (S1 ('MetaSel ('Just"touchFingerMotionEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat)) :*: (S1 ('MetaSel ('Just"touchFingerMotionEventRelMotion"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 CFloat)) :*: S1 ('MetaSel ('Just"touchFingerMotionEventPressure"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CFloat)))))
Gesture events
Multiple finger gesture event information
Constructors
MultiGestureEventDatamultiGestureEventTouchID :: !TouchIDThe touch device index.
multiGestureEventDTheta :: !CFloatThe amount that the fingers rotated during this motion.
multiGestureEventDDist :: !CFloatThe amount that the fingers pinched during this motion.
multiGestureEventPos :: !Point V2 CFloatThe normalized center of the gesture.
multiGestureEventNumFingers :: !Word16The number of fingers used in this gesture.
Instances5Eq, Ord, Show, Generic, Rep
Eq MultiGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd MultiGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow MultiGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric MultiGestureEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep MultiGestureEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"MultiGestureEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"MultiGestureEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"multiGestureEventTouchID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TouchID) :*: S1 ('MetaSel ('Just"multiGestureEventDTheta"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just"multiGestureEventDDist"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CFloat) :*: (S1 ('MetaSel ('Just"multiGestureEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat)) :*: S1 ('MetaSel ('Just"multiGestureEventNumFingers"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word16)))))
Complex gesture event information.
Constructors
DollarGestureEventDatadollarGestureEventTouchID :: !TouchIDThe touch device index.
dollarGestureEventGestureID :: !GestureIDThe unique id of the closest gesture to the performed stroke.
dollarGestureEventNumFingers :: !Word32The number of fingers used to draw the stroke.
dollarGestureEventError :: !CFloatThe difference between the gesture template and the actual performed gesture (lower errors correspond to closer matches).
dollarGestureEventPos :: !Point V2 CFloatThe normalized center of the gesture.
Instances5Eq, Ord, Show, Generic, Rep
Eq DollarGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd DollarGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow DollarGestureEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric DollarGestureEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep DollarGestureEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"DollarGestureEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"DollarGestureEventData"
'PrefixI 'True) ((S1 ('MetaSel ('Just"dollarGestureEventTouchID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 TouchID) :*: S1 ('MetaSel ('Just"dollarGestureEventGestureID"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 GestureID)) :*: (S1 ('MetaSel ('Just"dollarGestureEventNumFingers"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word32) :*: (S1 ('MetaSel ('Just"dollarGestureEventError"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 CFloat) :*: S1 ('MetaSel ('Just"dollarGestureEventPos"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat))))))
Drag and drop events
An event used to request a file open by the system
Constructors
DropEventDatadropEventFile :: CStringThe file name.
Instances5Eq, Ord, Show, Generic, Rep
Eq DropEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd DropEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow DropEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric DropEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep DropEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"DropEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"DropEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"dropEventFile"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CString)))
Unknown events
SDL reported an unknown event type.
Constructors
UnknownEventDataunknownEventType :: Word32The unknown event code.
Instances5Eq, Ord, Show, Generic, Rep
Eq UnknownEventDataDefined in sdl2-2.5.5.0 · SDL.EventOrd UnknownEventDataDefined in sdl2-2.5.5.0 · SDL.EventShow UnknownEventDataDefined in sdl2-2.5.5.0 · SDL.EventGeneric UnknownEventDataDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep UnknownEventData = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"UnknownEventData"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'True) (C1 ('MetaCons"UnknownEventData"
'PrefixI 'True) (S1 ('MetaSel ('Just"unknownEventType"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))
Auxiliary event data
2 declarationsInstances9Bounded, Enum, Eq, Data, Ord, Read, …
Bounded InputMotionDefined in sdl2-2.5.5.0 · SDL.EventEnum InputMotionDefined in sdl2-2.5.5.0 · SDL.EventEq InputMotionDefined in sdl2-2.5.5.0 · SDL.EventData InputMotionDefined in sdl2-2.5.5.0 · SDL.EventOrd InputMotionDefined in sdl2-2.5.5.0 · SDL.EventRead InputMotionDefined in sdl2-2.5.5.0 · SDL.EventShow InputMotionDefined in sdl2-2.5.5.0 · SDL.EventGeneric InputMotionDefined in sdl2-2.5.5.0 · SDL.Eventtype Rep InputMotion = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Event"InputMotion"
"SDL.Event"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons"Released"
'PrefixI 'False) U1 :+: C1 ('MetaCons"Pressed"
'PrefixI 'False) U1)
Constructors
ButtonLeftButtonMiddleButtonRightButtonX1ButtonX2ButtonExtra !IntAn unknown mouse button.
Instances9Eq, Data, Ord, Read, Show, Generic, …
Eq MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseData MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseOrd MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseRead MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseShow MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseGeneric MouseButtonDefined in sdl2-2.5.5.0 · SDL.Input.MouseToNumber MouseButton Word8Defined in sdl2-2.5.5.0 · SDL.Input.MouseFromNumber MouseButton Word8Defined in sdl2-2.5.5.0 · SDL.Input.Mousetype Rep MouseButton = D1 ('MetaDataDefined in sdl2-2.5.5.0 · SDL.Input.Mouse"MouseButton"
"SDL.Input.Mouse"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) ((C1 ('MetaCons"ButtonLeft"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"ButtonMiddle"
'PrefixI 'False) U1 :+: C1 ('MetaCons"ButtonRight"
'PrefixI 'False) U1)) :+: (C1 ('MetaCons"ButtonX1"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"ButtonX2"
'PrefixI 'False) U1 :+: C1 ('MetaCons"ButtonExtra"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int)))))