Safe Haskell | None |
---|---|
Language | Haskell2010 |
SDL.Event
Description
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.
Synopsis
- pollEvent :: MonadIO m => m (Maybe Event)
- pollEvents :: (Functor m, MonadIO m) => m [Event]
- mapEvents :: MonadIO m => (Event -> m ()) -> m ()
- pumpEvents :: MonadIO m => m ()
- waitEvent :: MonadIO m => m Event
- waitEventTimeout :: MonadIO m => CInt -> m (Maybe Event)
- data RegisteredEventType a = RegisteredEventType {
- pushRegisteredEvent :: a -> IO EventPushResult
- getRegisteredEvent :: Event -> IO (Maybe a)
- data RegisteredEventData = RegisteredEventData {
- registeredEventWindow :: !(Maybe Window)
- registeredEventCode :: !Int32
- registeredEventData1 :: !(Ptr ())
- registeredEventData2 :: !(Ptr ())
- data EventPushResult
- emptyRegisteredEvent :: RegisteredEventData
- registerEvent :: MonadIO m => (RegisteredEventData -> Timestamp -> IO (Maybe a)) -> (a -> IO RegisteredEventData) -> m (Maybe (RegisteredEventType a))
- type EventWatchCallback = Event -> IO ()
- data EventWatch
- addEventWatch :: MonadIO m => EventWatchCallback -> m EventWatch
- delEventWatch :: MonadIO m => EventWatch -> m ()
- data Event = Event {}
- type Timestamp = Word32
- data EventPayload
- = WindowShownEvent !WindowShownEventData
- | WindowHiddenEvent !WindowHiddenEventData
- | WindowExposedEvent !WindowExposedEventData
- | WindowMovedEvent !WindowMovedEventData
- | WindowResizedEvent !WindowResizedEventData
- | WindowSizeChangedEvent !WindowSizeChangedEventData
- | WindowMinimizedEvent !WindowMinimizedEventData
- | WindowMaximizedEvent !WindowMaximizedEventData
- | WindowRestoredEvent !WindowRestoredEventData
- | WindowGainedMouseFocusEvent !WindowGainedMouseFocusEventData
- | WindowLostMouseFocusEvent !WindowLostMouseFocusEventData
- | WindowGainedKeyboardFocusEvent !WindowGainedKeyboardFocusEventData
- | WindowLostKeyboardFocusEvent !WindowLostKeyboardFocusEventData
- | WindowClosedEvent !WindowClosedEventData
- | KeyboardEvent !KeyboardEventData
- | TextEditingEvent !TextEditingEventData
- | TextInputEvent !TextInputEventData
- | KeymapChangedEvent
- | MouseMotionEvent !MouseMotionEventData
- | MouseButtonEvent !MouseButtonEventData
- | MouseWheelEvent !MouseWheelEventData
- | JoyAxisEvent !JoyAxisEventData
- | JoyBallEvent !JoyBallEventData
- | JoyHatEvent !JoyHatEventData
- | JoyButtonEvent !JoyButtonEventData
- | JoyDeviceEvent !JoyDeviceEventData
- | ControllerAxisEvent !ControllerAxisEventData
- | ControllerButtonEvent !ControllerButtonEventData
- | ControllerDeviceEvent !ControllerDeviceEventData
- | AudioDeviceEvent !AudioDeviceEventData
- | QuitEvent
- | UserEvent !UserEventData
- | SysWMEvent !SysWMEventData
- | TouchFingerEvent !TouchFingerEventData
- | TouchFingerMotionEvent !TouchFingerMotionEventData
- | MultiGestureEvent !MultiGestureEventData
- | DollarGestureEvent !DollarGestureEventData
- | DropEvent !DropEventData
- | ClipboardUpdateEvent
- | UnknownEvent !UnknownEventData
- newtype WindowShownEventData = WindowShownEventData {}
- newtype WindowHiddenEventData = WindowHiddenEventData {}
- newtype WindowExposedEventData = WindowExposedEventData {}
- data WindowMovedEventData = WindowMovedEventData {
- windowMovedEventWindow :: !Window
- windowMovedEventPosition :: !(Point V2 Int32)
- data WindowResizedEventData = WindowResizedEventData {
- windowResizedEventWindow :: !Window
- windowResizedEventSize :: !(V2 Int32)
- data WindowSizeChangedEventData = WindowSizeChangedEventData {
- windowSizeChangedEventWindow :: !Window
- windowSizeChangedEventSize :: !(V2 Int32)
- newtype WindowMinimizedEventData = WindowMinimizedEventData {}
- newtype WindowMaximizedEventData = WindowMaximizedEventData {}
- newtype WindowRestoredEventData = WindowRestoredEventData {}
- newtype WindowGainedMouseFocusEventData = WindowGainedMouseFocusEventData {}
- newtype WindowLostMouseFocusEventData = WindowLostMouseFocusEventData {}
- newtype WindowGainedKeyboardFocusEventData = WindowGainedKeyboardFocusEventData {}
- newtype WindowLostKeyboardFocusEventData = WindowLostKeyboardFocusEventData {}
- newtype WindowClosedEventData = WindowClosedEventData {}
- newtype SysWMEventData = SysWMEventData {}
- data KeyboardEventData = KeyboardEventData {
- keyboardEventWindow :: !(Maybe Window)
- keyboardEventKeyMotion :: !InputMotion
- keyboardEventRepeat :: !Bool
- keyboardEventKeysym :: !Keysym
- data TextEditingEventData = TextEditingEventData {
- textEditingEventWindow :: !(Maybe Window)
- textEditingEventText :: !Text
- textEditingEventStart :: !Int32
- textEditingEventLength :: !Int32
- data TextInputEventData = TextInputEventData {
- textInputEventWindow :: !(Maybe Window)
- textInputEventText :: !Text
- data MouseMotionEventData = MouseMotionEventData {
- mouseMotionEventWindow :: !(Maybe Window)
- mouseMotionEventWhich :: !MouseDevice
- mouseMotionEventState :: ![MouseButton]
- mouseMotionEventPos :: !(Point V2 Int32)
- mouseMotionEventRelMotion :: !(V2 Int32)
- data MouseButtonEventData = MouseButtonEventData {
- mouseButtonEventWindow :: !(Maybe Window)
- mouseButtonEventMotion :: !InputMotion
- mouseButtonEventWhich :: !MouseDevice
- mouseButtonEventButton :: !MouseButton
- mouseButtonEventClicks :: !Word8
- mouseButtonEventPos :: !(Point V2 Int32)
- data MouseWheelEventData = MouseWheelEventData {
- mouseWheelEventWindow :: !(Maybe Window)
- mouseWheelEventWhich :: !MouseDevice
- mouseWheelEventPos :: !(V2 Int32)
- mouseWheelEventDirection :: !MouseScrollDirection
- data JoyAxisEventData = JoyAxisEventData {
- joyAxisEventWhich :: !JoystickID
- joyAxisEventAxis :: !Word8
- joyAxisEventValue :: !Int16
- data JoyBallEventData = JoyBallEventData {
- joyBallEventWhich :: !JoystickID
- joyBallEventBall :: !Word8
- joyBallEventRelMotion :: !(V2 Int16)
- data JoyHatEventData = JoyHatEventData {
- joyHatEventWhich :: !JoystickID
- joyHatEventHat :: !Word8
- joyHatEventValue :: !JoyHatPosition
- data JoyButtonEventData = JoyButtonEventData {}
- data JoyDeviceEventData = JoyDeviceEventData {}
- data ControllerAxisEventData = ControllerAxisEventData {
- controllerAxisEventWhich :: !JoystickID
- controllerAxisEventAxis :: !Word8
- controllerAxisEventValue :: !Int16
- data ControllerButtonEventData = ControllerButtonEventData {}
- data ControllerDeviceEventData = ControllerDeviceEventData {}
- data AudioDeviceEventData = AudioDeviceEventData {
- audioDeviceEventIsAddition :: !Bool
- audioDeviceEventWhich :: !Word32
- audioDeviceEventIsCapture :: !Bool
- data UserEventData = UserEventData {
- userEventType :: !Word32
- userEventWindow :: !(Maybe Window)
- userEventCode :: !Int32
- userEventData1 :: !(Ptr ())
- userEventData2 :: !(Ptr ())
- data TouchFingerEventData = TouchFingerEventData {
- touchFingerEventTouchID :: !TouchID
- touchFingerEventFingerID :: !FingerID
- touchFingerEventMotion :: !InputMotion
- touchFingerEventPos :: !(Point V2 CFloat)
- touchFingerEventPressure :: !CFloat
- data TouchFingerMotionEventData = TouchFingerMotionEventData {
- touchFingerMotionEventTouchID :: !TouchID
- touchFingerMotionEventFingerID :: !FingerID
- touchFingerMotionEventPos :: !(Point V2 CFloat)
- touchFingerMotionEventRelMotion :: !(V2 CFloat)
- touchFingerMotionEventPressure :: !CFloat
- data MultiGestureEventData = MultiGestureEventData {
- multiGestureEventTouchID :: !TouchID
- multiGestureEventDTheta :: !CFloat
- multiGestureEventDDist :: !CFloat
- multiGestureEventPos :: !(Point V2 CFloat)
- multiGestureEventNumFingers :: !Word16
- data DollarGestureEventData = DollarGestureEventData {
- dollarGestureEventTouchID :: !TouchID
- dollarGestureEventGestureID :: !GestureID
- dollarGestureEventNumFingers :: !Word32
- dollarGestureEventError :: !CFloat
- dollarGestureEventPos :: !(Point V2 CFloat)
- newtype DropEventData = DropEventData {
- dropEventFile :: CString
- newtype UnknownEventData = UnknownEventData {
- unknownEventType :: Word32
- data InputMotion
- data MouseButton
- = ButtonLeft
- | ButtonMiddle
- | ButtonRight
- | ButtonX1
- | ButtonX2
- | ButtonExtra !Int
Polling events
pollEvent :: MonadIO m => m (Maybe Event) Source #
Poll for currently pending events. You can only call this function in the thread that set the video mode.
pollEvents :: (Functor m, MonadIO m) => m [Event] Source #
Clear the event queue by polling for all pending events.
mapEvents :: MonadIO m => (Event -> m ()) -> m () Source #
Run a monadic computation, accumulating over all known Event
s.
This can be useful when used with a state monad, allowing you to fold all events together.
pumpEvents :: MonadIO m => m () Source #
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 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.
Arguments
:: MonadIO m | |
=> CInt | The maximum amount of time to wait, in milliseconds. |
-> m (Maybe Event) |
Wait until the specified timeout for the next available amount.
Registering user events
data RegisteredEventType a Source #
A user defined event structure that has been registered with SDL.
Use registerEvent
, below, to obtain an instance.
Constructors
RegisteredEventType | |
Fields
|
data RegisteredEventData Source #
A record used to convert between SDL Events and user-defined data structures.
Used for registerEvent
, below.
Constructors
RegisteredEventData | |
Fields
|
Instances
Eq RegisteredEventData Source # | |
Defined in SDL.Event Methods (==) :: RegisteredEventData -> RegisteredEventData -> Bool (/=) :: RegisteredEventData -> RegisteredEventData -> Bool | |
Ord RegisteredEventData Source # | |
Defined in SDL.Event Methods compare :: RegisteredEventData -> RegisteredEventData -> Ordering (<) :: RegisteredEventData -> RegisteredEventData -> Bool (<=) :: RegisteredEventData -> RegisteredEventData -> Bool (>) :: RegisteredEventData -> RegisteredEventData -> Bool (>=) :: RegisteredEventData -> RegisteredEventData -> Bool max :: RegisteredEventData -> RegisteredEventData -> RegisteredEventData min :: RegisteredEventData -> RegisteredEventData -> RegisteredEventData | |
Show RegisteredEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> RegisteredEventData -> ShowS show :: RegisteredEventData -> String showList :: [RegisteredEventData] -> ShowS | |
Generic RegisteredEventData Source # | |
Defined in SDL.Event Associated Types type Rep RegisteredEventData :: Type -> Type Methods from :: RegisteredEventData -> Rep RegisteredEventData x to :: Rep RegisteredEventData x -> RegisteredEventData | |
type Rep RegisteredEventData Source # | |
Defined in SDL.Event type Rep RegisteredEventData = D1 ('MetaData "RegisteredEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "RegisteredEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "registeredEventWindow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window)) :*: S1 ('MetaSel ('Just "registeredEventCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32)) :*: (S1 ('MetaSel ('Just "registeredEventData1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ())) :*: S1 ('MetaSel ('Just "registeredEventData2") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ()))))) |
data EventPushResult Source #
Possible results of an attempted push of an event to the queue.
Constructors
EventPushSuccess | |
EventPushFiltered | |
EventPushFailure Text |
Instances
Eq EventPushResult Source # | |
Defined in SDL.Event Methods (==) :: EventPushResult -> EventPushResult -> Bool (/=) :: EventPushResult -> EventPushResult -> Bool | |
Data EventPushResult Source # | |
Defined in SDL.Event Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EventPushResult -> c EventPushResult gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EventPushResult toConstr :: EventPushResult -> Constr dataTypeOf :: EventPushResult -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EventPushResult) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EventPushResult) gmapT :: (forall b. Data b => b -> b) -> EventPushResult -> EventPushResult gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EventPushResult -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EventPushResult -> r gmapQ :: (forall d. Data d => d -> u) -> EventPushResult -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> EventPushResult -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> EventPushResult -> m EventPushResult gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EventPushResult -> m EventPushResult gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EventPushResult -> m EventPushResult | |
Ord EventPushResult Source # | |
Defined in SDL.Event Methods compare :: EventPushResult -> EventPushResult -> Ordering (<) :: EventPushResult -> EventPushResult -> Bool (<=) :: EventPushResult -> EventPushResult -> Bool (>) :: EventPushResult -> EventPushResult -> Bool (>=) :: EventPushResult -> EventPushResult -> Bool max :: EventPushResult -> EventPushResult -> EventPushResult min :: EventPushResult -> EventPushResult -> EventPushResult | |
Read EventPushResult Source # | |
Defined in SDL.Event Methods readsPrec :: Int -> ReadS EventPushResult readList :: ReadS [EventPushResult] readPrec :: ReadPrec EventPushResult readListPrec :: ReadPrec [EventPushResult] | |
Show EventPushResult Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> EventPushResult -> ShowS show :: EventPushResult -> String showList :: [EventPushResult] -> ShowS | |
Generic EventPushResult Source # | |
Defined in SDL.Event Associated Types type Rep EventPushResult :: Type -> Type Methods from :: EventPushResult -> Rep EventPushResult x to :: Rep EventPushResult x -> EventPushResult | |
type Rep EventPushResult Source # | |
Defined in SDL.Event type Rep EventPushResult = D1 ('MetaData "EventPushResult" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "EventPushSuccess" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EventPushFiltered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EventPushFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
emptyRegisteredEvent :: RegisteredEventData Source #
A registered event with no associated data.
This is a resonable baseline to modify for converting to
RegisteredEventData
.
registerEvent :: MonadIO m => (RegisteredEventData -> Timestamp -> IO (Maybe a)) -> (a -> IO RegisteredEventData) -> m (Maybe (RegisteredEventType a)) Source #
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
type EventWatchCallback = Event -> IO () Source #
An EventWatchCallback
can process and respond to an event
when it is added to the event queue.
data EventWatch Source #
addEventWatch :: MonadIO m => EventWatchCallback -> m EventWatch Source #
Trigger an EventWatchCallback
when an event is added to the SDL
event queue.
See https://wiki.libsdl.org/SDL_AddEventWatch
for C documentation.
delEventWatch :: MonadIO m => EventWatch -> m () Source #
Remove an EventWatch
.
See https://wiki.libsdl.org/SDL_DelEventWatch
for C documentation.
Event data
A single SDL event. This event occured at eventTimestamp
and carries data under eventPayload
.
Constructors
Event | |
Fields
|
Instances
Eq Event Source # | |
Ord Event Source # | |
Show Event Source # | |
Generic Event Source # | |
type Rep Event Source # | |
Defined in SDL.Event type Rep Event = D1 ('MetaData "Event" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Timestamp) :*: S1 ('MetaSel ('Just "eventPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventPayload))) |
data EventPayload Source #
An enumeration of all possible SDL event types. This data type pairs up event types with their payload, where possible.
Constructors
Instances
Eq EventPayload Source # | |
Defined in SDL.Event | |
Ord EventPayload Source # | |
Defined in SDL.Event Methods compare :: EventPayload -> EventPayload -> Ordering (<) :: EventPayload -> EventPayload -> Bool (<=) :: EventPayload -> EventPayload -> Bool (>) :: EventPayload -> EventPayload -> Bool (>=) :: EventPayload -> EventPayload -> Bool max :: EventPayload -> EventPayload -> EventPayload min :: EventPayload -> EventPayload -> EventPayload | |
Show EventPayload Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> EventPayload -> ShowS show :: EventPayload -> String showList :: [EventPayload] -> ShowS | |
Generic EventPayload Source # | |
Defined in SDL.Event Associated Types type Rep EventPayload :: Type -> Type | |
type Rep EventPayload Source # | |
Defined in SDL.Event type Rep EventPayload = D1 ('MetaData "EventPayload" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (((((C1 ('MetaCons "WindowShownEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowShownEventData)) :+: C1 ('MetaCons "WindowHiddenEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowHiddenEventData))) :+: (C1 ('MetaCons "WindowExposedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowExposedEventData)) :+: (C1 ('MetaCons "WindowMovedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowMovedEventData)) :+: C1 ('MetaCons "WindowResizedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowResizedEventData))))) :+: ((C1 ('MetaCons "WindowSizeChangedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowSizeChangedEventData)) :+: C1 ('MetaCons "WindowMinimizedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowMinimizedEventData))) :+: (C1 ('MetaCons "WindowMaximizedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowMaximizedEventData)) :+: (C1 ('MetaCons "WindowRestoredEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowRestoredEventData)) :+: C1 ('MetaCons "WindowGainedMouseFocusEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowGainedMouseFocusEventData)))))) :+: (((C1 ('MetaCons "WindowLostMouseFocusEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowLostMouseFocusEventData)) :+: C1 ('MetaCons "WindowGainedKeyboardFocusEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowGainedKeyboardFocusEventData))) :+: (C1 ('MetaCons "WindowLostKeyboardFocusEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowLostKeyboardFocusEventData)) :+: (C1 ('MetaCons "WindowClosedEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WindowClosedEventData)) :+: C1 ('MetaCons "KeyboardEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 KeyboardEventData))))) :+: ((C1 ('MetaCons "TextEditingEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TextEditingEventData)) :+: C1 ('MetaCons "TextInputEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TextInputEventData))) :+: (C1 ('MetaCons "KeymapChangedEvent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MouseMotionEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseMotionEventData)) :+: C1 ('MetaCons "MouseButtonEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseButtonEventData))))))) :+: ((((C1 ('MetaCons "MouseWheelEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MouseWheelEventData)) :+: C1 ('MetaCons "JoyAxisEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyAxisEventData))) :+: (C1 ('MetaCons "JoyBallEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyBallEventData)) :+: (C1 ('MetaCons "JoyHatEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyHatEventData)) :+: C1 ('MetaCons "JoyButtonEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyButtonEventData))))) :+: ((C1 ('MetaCons "JoyDeviceEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyDeviceEventData)) :+: C1 ('MetaCons "ControllerAxisEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerAxisEventData))) :+: (C1 ('MetaCons "ControllerButtonEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerButtonEventData)) :+: (C1 ('MetaCons "ControllerDeviceEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControllerDeviceEventData)) :+: C1 ('MetaCons "AudioDeviceEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AudioDeviceEventData)))))) :+: (((C1 ('MetaCons "QuitEvent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UserEventData))) :+: (C1 ('MetaCons "SysWMEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SysWMEventData)) :+: (C1 ('MetaCons "TouchFingerEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchFingerEventData)) :+: C1 ('MetaCons "TouchFingerMotionEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchFingerMotionEventData))))) :+: ((C1 ('MetaCons "MultiGestureEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MultiGestureEventData)) :+: C1 ('MetaCons "DollarGestureEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DollarGestureEventData))) :+: (C1 ('MetaCons "DropEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DropEventData)) :+: (C1 ('MetaCons "ClipboardUpdateEvent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UnknownEvent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnknownEventData)))))))) |
Window events
newtype WindowShownEventData Source #
A window has been shown.
Constructors
WindowShownEventData | |
Fields
|
Instances
newtype WindowHiddenEventData Source #
A window has been hidden.
Constructors
WindowHiddenEventData | |
Fields
|
Instances
newtype WindowExposedEventData Source #
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
WindowExposedEventData | |
Fields
|
Instances
data WindowMovedEventData Source #
A Window
has been moved.
Constructors
WindowMovedEventData | |
Fields
|
Instances
data WindowResizedEventData Source #
Window has been resized. This is event is always preceded by WindowSizeChangedEvent
.
Constructors
WindowResizedEventData | |
Fields
|
Instances
data WindowSizeChangedEventData Source #
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
WindowSizeChangedEventData | |
Fields
|
Instances
newtype WindowMinimizedEventData Source #
The window has been minimized.
Constructors
WindowMinimizedEventData | |
Fields
|
Instances
newtype WindowMaximizedEventData Source #
The window has been maximized.
Constructors
WindowMaximizedEventData | |
Fields
|
Instances
newtype WindowRestoredEventData Source #
The window has been restored to normal size and position.
Constructors
WindowRestoredEventData | |
Fields
|
Instances
newtype WindowGainedMouseFocusEventData Source #
The window has gained mouse focus.
Constructors
WindowGainedMouseFocusEventData | |
Fields
|
Instances
newtype WindowLostMouseFocusEventData Source #
The window has lost mouse focus.
Constructors
WindowLostMouseFocusEventData | |
Fields
|
Instances
newtype WindowGainedKeyboardFocusEventData Source #
The window has gained keyboard focus.
Constructors
WindowGainedKeyboardFocusEventData | |
Fields
|
Instances
newtype WindowLostKeyboardFocusEventData Source #
The window has lost keyboard focus.
Constructors
WindowLostKeyboardFocusEventData | |
Fields
|
Instances
newtype WindowClosedEventData Source #
The window manager requests that the window be closed.
Constructors
WindowClosedEventData | |
Fields
|
Instances
newtype SysWMEventData Source #
A video driver dependent system event
Constructors
SysWMEventData | |
Fields |
Instances
Eq SysWMEventData Source # | |
Defined in SDL.Event Methods (==) :: SysWMEventData -> SysWMEventData -> Bool (/=) :: SysWMEventData -> SysWMEventData -> Bool | |
Ord SysWMEventData Source # | |
Defined in SDL.Event Methods compare :: SysWMEventData -> SysWMEventData -> Ordering (<) :: SysWMEventData -> SysWMEventData -> Bool (<=) :: SysWMEventData -> SysWMEventData -> Bool (>) :: SysWMEventData -> SysWMEventData -> Bool (>=) :: SysWMEventData -> SysWMEventData -> Bool max :: SysWMEventData -> SysWMEventData -> SysWMEventData min :: SysWMEventData -> SysWMEventData -> SysWMEventData | |
Show SysWMEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> SysWMEventData -> ShowS show :: SysWMEventData -> String showList :: [SysWMEventData] -> ShowS | |
Generic SysWMEventData Source # | |
Defined in SDL.Event Associated Types type Rep SysWMEventData :: Type -> Type | |
type Rep SysWMEventData Source # | |
Defined in SDL.Event type Rep SysWMEventData = D1 ('MetaData "SysWMEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'True) (C1 ('MetaCons "SysWMEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "sysWMEventMsg") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SysWMmsg))) |
Keyboard events
data KeyboardEventData Source #
A keyboard key has been pressed or released.
Constructors
KeyboardEventData | |
Fields
|
Instances
Eq KeyboardEventData Source # | |
Defined in SDL.Event Methods (==) :: KeyboardEventData -> KeyboardEventData -> Bool (/=) :: KeyboardEventData -> KeyboardEventData -> Bool | |
Ord KeyboardEventData Source # | |
Defined in SDL.Event Methods compare :: KeyboardEventData -> KeyboardEventData -> Ordering (<) :: KeyboardEventData -> KeyboardEventData -> Bool (<=) :: KeyboardEventData -> KeyboardEventData -> Bool (>) :: KeyboardEventData -> KeyboardEventData -> Bool (>=) :: KeyboardEventData -> KeyboardEventData -> Bool max :: KeyboardEventData -> KeyboardEventData -> KeyboardEventData min :: KeyboardEventData -> KeyboardEventData -> KeyboardEventData | |
Show KeyboardEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> KeyboardEventData -> ShowS show :: KeyboardEventData -> String showList :: [KeyboardEventData] -> ShowS | |
Generic KeyboardEventData Source # | |
Defined in SDL.Event Associated Types type Rep KeyboardEventData :: Type -> Type Methods from :: KeyboardEventData -> Rep KeyboardEventData x to :: Rep KeyboardEventData x -> KeyboardEventData | |
type Rep KeyboardEventData Source # | |
Defined in SDL.Event type Rep KeyboardEventData = D1 ('MetaData "KeyboardEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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)))) |
data TextEditingEventData Source #
Keyboard text editing event information.
Constructors
TextEditingEventData | |
Fields
|
Instances
Eq TextEditingEventData Source # | |
Defined in SDL.Event Methods (==) :: TextEditingEventData -> TextEditingEventData -> Bool (/=) :: TextEditingEventData -> TextEditingEventData -> Bool | |
Ord TextEditingEventData Source # | |
Defined in SDL.Event Methods compare :: TextEditingEventData -> TextEditingEventData -> Ordering (<) :: TextEditingEventData -> TextEditingEventData -> Bool (<=) :: TextEditingEventData -> TextEditingEventData -> Bool (>) :: TextEditingEventData -> TextEditingEventData -> Bool (>=) :: TextEditingEventData -> TextEditingEventData -> Bool max :: TextEditingEventData -> TextEditingEventData -> TextEditingEventData min :: TextEditingEventData -> TextEditingEventData -> TextEditingEventData | |
Show TextEditingEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> TextEditingEventData -> ShowS show :: TextEditingEventData -> String showList :: [TextEditingEventData] -> ShowS | |
Generic TextEditingEventData Source # | |
Defined in SDL.Event Associated Types type Rep TextEditingEventData :: Type -> Type Methods from :: TextEditingEventData -> Rep TextEditingEventData x to :: Rep TextEditingEventData x -> TextEditingEventData | |
type Rep TextEditingEventData Source # | |
Defined in SDL.Event type Rep TextEditingEventData = D1 ('MetaData "TextEditingEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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 'DecidedStrict) (Rec0 Int32) :*: S1 ('MetaSel ('Just "textEditingEventLength") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32)))) |
data TextInputEventData Source #
Keyboard text input event information.
Constructors
TextInputEventData | |
Fields
|
Instances
Eq TextInputEventData Source # | |
Defined in SDL.Event Methods (==) :: TextInputEventData -> TextInputEventData -> Bool (/=) :: TextInputEventData -> TextInputEventData -> Bool | |
Ord TextInputEventData Source # | |
Defined in SDL.Event Methods compare :: TextInputEventData -> TextInputEventData -> Ordering (<) :: TextInputEventData -> TextInputEventData -> Bool (<=) :: TextInputEventData -> TextInputEventData -> Bool (>) :: TextInputEventData -> TextInputEventData -> Bool (>=) :: TextInputEventData -> TextInputEventData -> Bool max :: TextInputEventData -> TextInputEventData -> TextInputEventData min :: TextInputEventData -> TextInputEventData -> TextInputEventData | |
Show TextInputEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> TextInputEventData -> ShowS show :: TextInputEventData -> String showList :: [TextInputEventData] -> ShowS | |
Generic TextInputEventData Source # | |
Defined in SDL.Event Associated Types type Rep TextInputEventData :: Type -> Type Methods from :: TextInputEventData -> Rep TextInputEventData x to :: Rep TextInputEventData x -> TextInputEventData | |
type Rep TextInputEventData Source # | |
Defined in SDL.Event type Rep TextInputEventData = D1 ('MetaData "TextInputEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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
data MouseMotionEventData Source #
A mouse or pointer device was moved.
Constructors
MouseMotionEventData | |
Fields
|
Instances
Eq MouseMotionEventData Source # | |
Defined in SDL.Event Methods (==) :: MouseMotionEventData -> MouseMotionEventData -> Bool (/=) :: MouseMotionEventData -> MouseMotionEventData -> Bool | |
Ord MouseMotionEventData Source # | |
Defined in SDL.Event Methods compare :: MouseMotionEventData -> MouseMotionEventData -> Ordering (<) :: MouseMotionEventData -> MouseMotionEventData -> Bool (<=) :: MouseMotionEventData -> MouseMotionEventData -> Bool (>) :: MouseMotionEventData -> MouseMotionEventData -> Bool (>=) :: MouseMotionEventData -> MouseMotionEventData -> Bool max :: MouseMotionEventData -> MouseMotionEventData -> MouseMotionEventData min :: MouseMotionEventData -> MouseMotionEventData -> MouseMotionEventData | |
Show MouseMotionEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> MouseMotionEventData -> ShowS show :: MouseMotionEventData -> String showList :: [MouseMotionEventData] -> ShowS | |
Generic MouseMotionEventData Source # | |
Defined in SDL.Event Associated Types type Rep MouseMotionEventData :: Type -> Type Methods from :: MouseMotionEventData -> Rep MouseMotionEventData x to :: Rep MouseMotionEventData x -> MouseMotionEventData | |
type Rep MouseMotionEventData Source # | |
Defined in SDL.Event type Rep MouseMotionEventData = D1 ('MetaData "MouseMotionEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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)))))) |
data MouseButtonEventData Source #
A mouse or pointer device button was pressed or released.
Constructors
MouseButtonEventData | |
Fields
|
Instances
Eq MouseButtonEventData Source # | |
Defined in SDL.Event Methods (==) :: MouseButtonEventData -> MouseButtonEventData -> Bool (/=) :: MouseButtonEventData -> MouseButtonEventData -> Bool | |
Ord MouseButtonEventData Source # | |
Defined in SDL.Event Methods compare :: MouseButtonEventData -> MouseButtonEventData -> Ordering (<) :: MouseButtonEventData -> MouseButtonEventData -> Bool (<=) :: MouseButtonEventData -> MouseButtonEventData -> Bool (>) :: MouseButtonEventData -> MouseButtonEventData -> Bool (>=) :: MouseButtonEventData -> MouseButtonEventData -> Bool max :: MouseButtonEventData -> MouseButtonEventData -> MouseButtonEventData min :: MouseButtonEventData -> MouseButtonEventData -> MouseButtonEventData | |
Show MouseButtonEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> MouseButtonEventData -> ShowS show :: MouseButtonEventData -> String showList :: [MouseButtonEventData] -> ShowS | |
Generic MouseButtonEventData Source # | |
Defined in SDL.Event Associated Types type Rep MouseButtonEventData :: Type -> Type Methods from :: MouseButtonEventData -> Rep MouseButtonEventData x to :: Rep MouseButtonEventData x -> MouseButtonEventData | |
type Rep MouseButtonEventData Source # | |
Defined in SDL.Event type Rep MouseButtonEventData = D1 ('MetaData "MouseButtonEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "mouseButtonEventPos") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 Int32)))))) |
data MouseWheelEventData Source #
Mouse wheel event information.
Constructors
MouseWheelEventData | |
Fields
|
Instances
Eq MouseWheelEventData Source # | |
Defined in SDL.Event Methods (==) :: MouseWheelEventData -> MouseWheelEventData -> Bool (/=) :: MouseWheelEventData -> MouseWheelEventData -> Bool | |
Ord MouseWheelEventData Source # | |
Defined in SDL.Event Methods compare :: MouseWheelEventData -> MouseWheelEventData -> Ordering (<) :: MouseWheelEventData -> MouseWheelEventData -> Bool (<=) :: MouseWheelEventData -> MouseWheelEventData -> Bool (>) :: MouseWheelEventData -> MouseWheelEventData -> Bool (>=) :: MouseWheelEventData -> MouseWheelEventData -> Bool max :: MouseWheelEventData -> MouseWheelEventData -> MouseWheelEventData min :: MouseWheelEventData -> MouseWheelEventData -> MouseWheelEventData | |
Show MouseWheelEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> MouseWheelEventData -> ShowS show :: MouseWheelEventData -> String showList :: [MouseWheelEventData] -> ShowS | |
Generic MouseWheelEventData Source # | |
Defined in SDL.Event Associated Types type Rep MouseWheelEventData :: Type -> Type Methods from :: MouseWheelEventData -> Rep MouseWheelEventData x to :: Rep MouseWheelEventData x -> MouseWheelEventData | |
type Rep MouseWheelEventData Source # | |
Defined in SDL.Event type Rep MouseWheelEventData = D1 ('MetaData "MouseWheelEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" '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
data JoyAxisEventData Source #
Joystick axis motion event information
Constructors
JoyAxisEventData | |
Fields
|
Instances
Eq JoyAxisEventData Source # | |
Defined in SDL.Event Methods (==) :: JoyAxisEventData -> JoyAxisEventData -> Bool (/=) :: JoyAxisEventData -> JoyAxisEventData -> Bool | |
Ord JoyAxisEventData Source # | |
Defined in SDL.Event Methods compare :: JoyAxisEventData -> JoyAxisEventData -> Ordering (<) :: JoyAxisEventData -> JoyAxisEventData -> Bool (<=) :: JoyAxisEventData -> JoyAxisEventData -> Bool (>) :: JoyAxisEventData -> JoyAxisEventData -> Bool (>=) :: JoyAxisEventData -> JoyAxisEventData -> Bool max :: JoyAxisEventData -> JoyAxisEventData -> JoyAxisEventData min :: JoyAxisEventData -> JoyAxisEventData -> JoyAxisEventData | |
Show JoyAxisEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> JoyAxisEventData -> ShowS show :: JoyAxisEventData -> String showList :: [JoyAxisEventData] -> ShowS | |
Generic JoyAxisEventData Source # | |
Defined in SDL.Event Associated Types type Rep JoyAxisEventData :: Type -> Type Methods from :: JoyAxisEventData -> Rep JoyAxisEventData x to :: Rep JoyAxisEventData x -> JoyAxisEventData | |
type Rep JoyAxisEventData Source # | |
Defined in SDL.Event type Rep JoyAxisEventData = D1 ('MetaData "JoyAxisEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "JoyAxisEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "joyAxisEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just "joyAxisEventAxis") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "joyAxisEventValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int16)))) |
data JoyBallEventData Source #
Joystick trackball motion event information.
Constructors
JoyBallEventData | |
Fields
|
Instances
Eq JoyBallEventData Source # | |
Defined in SDL.Event Methods (==) :: JoyBallEventData -> JoyBallEventData -> Bool (/=) :: JoyBallEventData -> JoyBallEventData -> Bool | |
Ord JoyBallEventData Source # | |
Defined in SDL.Event Methods compare :: JoyBallEventData -> JoyBallEventData -> Ordering (<) :: JoyBallEventData -> JoyBallEventData -> Bool (<=) :: JoyBallEventData -> JoyBallEventData -> Bool (>) :: JoyBallEventData -> JoyBallEventData -> Bool (>=) :: JoyBallEventData -> JoyBallEventData -> Bool max :: JoyBallEventData -> JoyBallEventData -> JoyBallEventData min :: JoyBallEventData -> JoyBallEventData -> JoyBallEventData | |
Show JoyBallEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> JoyBallEventData -> ShowS show :: JoyBallEventData -> String showList :: [JoyBallEventData] -> ShowS | |
Generic JoyBallEventData Source # | |
Defined in SDL.Event Associated Types type Rep JoyBallEventData :: Type -> Type Methods from :: JoyBallEventData -> Rep JoyBallEventData x to :: Rep JoyBallEventData x -> JoyBallEventData | |
type Rep JoyBallEventData Source # | |
Defined in SDL.Event type Rep JoyBallEventData = D1 ('MetaData "JoyBallEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "JoyBallEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "joyBallEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just "joyBallEventBall") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "joyBallEventRelMotion") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (V2 Int16))))) |
data JoyHatEventData Source #
Joystick hat position change event information
Constructors
JoyHatEventData | |
Fields
|
Instances
Eq JoyHatEventData Source # | |
Defined in SDL.Event Methods (==) :: JoyHatEventData -> JoyHatEventData -> Bool (/=) :: JoyHatEventData -> JoyHatEventData -> Bool | |
Ord JoyHatEventData Source # | |
Defined in SDL.Event Methods compare :: JoyHatEventData -> JoyHatEventData -> Ordering (<) :: JoyHatEventData -> JoyHatEventData -> Bool (<=) :: JoyHatEventData -> JoyHatEventData -> Bool (>) :: JoyHatEventData -> JoyHatEventData -> Bool (>=) :: JoyHatEventData -> JoyHatEventData -> Bool max :: JoyHatEventData -> JoyHatEventData -> JoyHatEventData min :: JoyHatEventData -> JoyHatEventData -> JoyHatEventData | |
Show JoyHatEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> JoyHatEventData -> ShowS show :: JoyHatEventData -> String showList :: [JoyHatEventData] -> ShowS | |
Generic JoyHatEventData Source # | |
Defined in SDL.Event Associated Types type Rep JoyHatEventData :: Type -> Type Methods from :: JoyHatEventData -> Rep JoyHatEventData x to :: Rep JoyHatEventData x -> JoyHatEventData | |
type Rep JoyHatEventData Source # | |
Defined in SDL.Event type Rep JoyHatEventData = D1 ('MetaData "JoyHatEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "JoyHatEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "joyHatEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just "joyHatEventHat") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "joyHatEventValue") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyHatPosition)))) |
data JoyButtonEventData Source #
Joystick button event information.
Constructors
JoyButtonEventData | |
Fields
|
Instances
Eq JoyButtonEventData Source # | |
Defined in SDL.Event Methods (==) :: JoyButtonEventData -> JoyButtonEventData -> Bool (/=) :: JoyButtonEventData -> JoyButtonEventData -> Bool | |
Ord JoyButtonEventData Source # | |
Defined in SDL.Event Methods compare :: JoyButtonEventData -> JoyButtonEventData -> Ordering (<) :: JoyButtonEventData -> JoyButtonEventData -> Bool (<=) :: JoyButtonEventData -> JoyButtonEventData -> Bool (>) :: JoyButtonEventData -> JoyButtonEventData -> Bool (>=) :: JoyButtonEventData -> JoyButtonEventData -> Bool max :: JoyButtonEventData -> JoyButtonEventData -> JoyButtonEventData min :: JoyButtonEventData -> JoyButtonEventData -> JoyButtonEventData | |
Show JoyButtonEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> JoyButtonEventData -> ShowS show :: JoyButtonEventData -> String showList :: [JoyButtonEventData] -> ShowS | |
Generic JoyButtonEventData Source # | |
Defined in SDL.Event Associated Types type Rep JoyButtonEventData :: Type -> Type Methods from :: JoyButtonEventData -> Rep JoyButtonEventData x to :: Rep JoyButtonEventData x -> JoyButtonEventData | |
type Rep JoyButtonEventData Source # | |
Defined in SDL.Event type Rep JoyButtonEventData = D1 ('MetaData "JoyButtonEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "JoyButtonEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "joyButtonEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoystickID) :*: (S1 ('MetaSel ('Just "joyButtonEventButton") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: S1 ('MetaSel ('Just "joyButtonEventState") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyButtonState)))) |
data JoyDeviceEventData Source #
Joystick device event information.
Constructors
JoyDeviceEventData | |
Fields
|
Instances
Eq JoyDeviceEventData Source # | |
Defined in SDL.Event Methods (==) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool (/=) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool | |
Ord JoyDeviceEventData Source # | |
Defined in SDL.Event Methods compare :: JoyDeviceEventData -> JoyDeviceEventData -> Ordering (<) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool (<=) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool (>) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool (>=) :: JoyDeviceEventData -> JoyDeviceEventData -> Bool max :: JoyDeviceEventData -> JoyDeviceEventData -> JoyDeviceEventData min :: JoyDeviceEventData -> JoyDeviceEventData -> JoyDeviceEventData | |
Show JoyDeviceEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> JoyDeviceEventData -> ShowS show :: JoyDeviceEventData -> String showList :: [JoyDeviceEventData] -> ShowS | |
Generic JoyDeviceEventData Source # | |
Defined in SDL.Event Associated Types type Rep JoyDeviceEventData :: Type -> Type Methods from :: JoyDeviceEventData -> Rep JoyDeviceEventData x to :: Rep JoyDeviceEventData x -> JoyDeviceEventData | |
type Rep JoyDeviceEventData Source # | |
Defined in SDL.Event type Rep JoyDeviceEventData = D1 ('MetaData "JoyDeviceEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "JoyDeviceEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "joyDeviceEventConnection") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 JoyDeviceConnection) :*: S1 ('MetaSel ('Just "joyDeviceEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32))) |
Controller events
data ControllerAxisEventData Source #
Game controller axis motion event information.
Constructors
ControllerAxisEventData | |
Fields
|
Instances
data ControllerButtonEventData Source #
Game controller button event information
Constructors
ControllerButtonEventData | |
Fields
|
Instances
data ControllerDeviceEventData Source #
Controller device event information
Constructors
ControllerDeviceEventData | |
Fields
|
Instances
Audio events
data AudioDeviceEventData Source #
Constructors
AudioDeviceEventData | |
Fields
|
Instances
Eq AudioDeviceEventData Source # | |
Defined in SDL.Event Methods (==) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool (/=) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool | |
Ord AudioDeviceEventData Source # | |
Defined in SDL.Event Methods compare :: AudioDeviceEventData -> AudioDeviceEventData -> Ordering (<) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool (<=) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool (>) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool (>=) :: AudioDeviceEventData -> AudioDeviceEventData -> Bool max :: AudioDeviceEventData -> AudioDeviceEventData -> AudioDeviceEventData min :: AudioDeviceEventData -> AudioDeviceEventData -> AudioDeviceEventData | |
Show AudioDeviceEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> AudioDeviceEventData -> ShowS show :: AudioDeviceEventData -> String showList :: [AudioDeviceEventData] -> ShowS | |
Generic AudioDeviceEventData Source # | |
Defined in SDL.Event Associated Types type Rep AudioDeviceEventData :: Type -> Type Methods from :: AudioDeviceEventData -> Rep AudioDeviceEventData x to :: Rep AudioDeviceEventData x -> AudioDeviceEventData | |
type Rep AudioDeviceEventData Source # | |
Defined in SDL.Event type Rep AudioDeviceEventData = D1 ('MetaData "AudioDeviceEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "AudioDeviceEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "audioDeviceEventIsAddition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "audioDeviceEventWhich") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "audioDeviceEventIsCapture") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))) |
User events
data UserEventData Source #
Event data for application-defined events.
Constructors
UserEventData | |
Fields
|
Instances
Eq UserEventData Source # | |
Defined in SDL.Event | |
Ord UserEventData Source # | |
Defined in SDL.Event Methods compare :: UserEventData -> UserEventData -> Ordering (<) :: UserEventData -> UserEventData -> Bool (<=) :: UserEventData -> UserEventData -> Bool (>) :: UserEventData -> UserEventData -> Bool (>=) :: UserEventData -> UserEventData -> Bool max :: UserEventData -> UserEventData -> UserEventData min :: UserEventData -> UserEventData -> UserEventData | |
Show UserEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> UserEventData -> ShowS show :: UserEventData -> String showList :: [UserEventData] -> ShowS | |
Generic UserEventData Source # | |
Defined in SDL.Event Associated Types type Rep UserEventData :: Type -> Type | |
type Rep UserEventData Source # | |
Defined in SDL.Event type Rep UserEventData = D1 ('MetaData "UserEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "UserEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userEventType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "userEventWindow") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Window))) :*: (S1 ('MetaSel ('Just "userEventCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int32) :*: (S1 ('MetaSel ('Just "userEventData1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ())) :*: S1 ('MetaSel ('Just "userEventData2") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Ptr ())))))) |
Touch events
data TouchFingerEventData Source #
Finger touch event information.
Constructors
TouchFingerEventData | |
Fields
|
Instances
Eq TouchFingerEventData Source # | |
Defined in SDL.Event Methods (==) :: TouchFingerEventData -> TouchFingerEventData -> Bool (/=) :: TouchFingerEventData -> TouchFingerEventData -> Bool | |
Ord TouchFingerEventData Source # | |
Defined in SDL.Event Methods compare :: TouchFingerEventData -> TouchFingerEventData -> Ordering (<) :: TouchFingerEventData -> TouchFingerEventData -> Bool (<=) :: TouchFingerEventData -> TouchFingerEventData -> Bool (>) :: TouchFingerEventData -> TouchFingerEventData -> Bool (>=) :: TouchFingerEventData -> TouchFingerEventData -> Bool max :: TouchFingerEventData -> TouchFingerEventData -> TouchFingerEventData min :: TouchFingerEventData -> TouchFingerEventData -> TouchFingerEventData | |
Show TouchFingerEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> TouchFingerEventData -> ShowS show :: TouchFingerEventData -> String showList :: [TouchFingerEventData] -> ShowS | |
Generic TouchFingerEventData Source # | |
Defined in SDL.Event Associated Types type Rep TouchFingerEventData :: Type -> Type Methods from :: TouchFingerEventData -> Rep TouchFingerEventData x to :: Rep TouchFingerEventData x -> TouchFingerEventData | |
type Rep TouchFingerEventData Source # | |
Defined in SDL.Event type Rep TouchFingerEventData = D1 ('MetaData "TouchFingerEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "TouchFingerEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "touchFingerEventTouchID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchID) :*: S1 ('MetaSel ('Just "touchFingerEventFingerID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (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 'DecidedStrict) (Rec0 CFloat))))) |
data TouchFingerMotionEventData Source #
Finger motion event information.
Constructors
TouchFingerMotionEventData | |
Fields
|
Instances
Eq TouchFingerMotionEventData Source # | |
Defined in SDL.Event Methods (==) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool (/=) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool | |
Ord TouchFingerMotionEventData Source # | |
Defined in SDL.Event Methods compare :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Ordering (<) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool (<=) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool (>) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool (>=) :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> Bool max :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> TouchFingerMotionEventData min :: TouchFingerMotionEventData -> TouchFingerMotionEventData -> TouchFingerMotionEventData | |
Show TouchFingerMotionEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> TouchFingerMotionEventData -> ShowS show :: TouchFingerMotionEventData -> String showList :: [TouchFingerMotionEventData] -> ShowS | |
Generic TouchFingerMotionEventData Source # | |
Defined in SDL.Event Associated Types type Rep TouchFingerMotionEventData :: Type -> Type Methods from :: TouchFingerMotionEventData -> Rep TouchFingerMotionEventData x to :: Rep TouchFingerMotionEventData x -> TouchFingerMotionEventData | |
type Rep TouchFingerMotionEventData Source # | |
Defined in SDL.Event type Rep TouchFingerMotionEventData = D1 ('MetaData "TouchFingerMotionEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "TouchFingerMotionEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "touchFingerMotionEventTouchID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchID) :*: S1 ('MetaSel ('Just "touchFingerMotionEventFingerID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (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 'DecidedStrict) (Rec0 CFloat))))) |
Gesture events
data MultiGestureEventData Source #
Multiple finger gesture event information
Constructors
MultiGestureEventData | |
Fields
|
Instances
Eq MultiGestureEventData Source # | |
Defined in SDL.Event Methods (==) :: MultiGestureEventData -> MultiGestureEventData -> Bool (/=) :: MultiGestureEventData -> MultiGestureEventData -> Bool | |
Ord MultiGestureEventData Source # | |
Defined in SDL.Event Methods compare :: MultiGestureEventData -> MultiGestureEventData -> Ordering (<) :: MultiGestureEventData -> MultiGestureEventData -> Bool (<=) :: MultiGestureEventData -> MultiGestureEventData -> Bool (>) :: MultiGestureEventData -> MultiGestureEventData -> Bool (>=) :: MultiGestureEventData -> MultiGestureEventData -> Bool max :: MultiGestureEventData -> MultiGestureEventData -> MultiGestureEventData min :: MultiGestureEventData -> MultiGestureEventData -> MultiGestureEventData | |
Show MultiGestureEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> MultiGestureEventData -> ShowS show :: MultiGestureEventData -> String showList :: [MultiGestureEventData] -> ShowS | |
Generic MultiGestureEventData Source # | |
Defined in SDL.Event Associated Types type Rep MultiGestureEventData :: Type -> Type Methods from :: MultiGestureEventData -> Rep MultiGestureEventData x to :: Rep MultiGestureEventData x -> MultiGestureEventData | |
type Rep MultiGestureEventData Source # | |
Defined in SDL.Event type Rep MultiGestureEventData = D1 ('MetaData "MultiGestureEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "MultiGestureEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "multiGestureEventTouchID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchID) :*: S1 ('MetaSel ('Just "multiGestureEventDTheta") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just "multiGestureEventDDist") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CFloat) :*: (S1 ('MetaSel ('Just "multiGestureEventPos") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat)) :*: S1 ('MetaSel ('Just "multiGestureEventNumFingers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word16))))) |
data DollarGestureEventData Source #
Complex gesture event information.
Constructors
DollarGestureEventData | |
Fields
|
Instances
Eq DollarGestureEventData Source # | |
Defined in SDL.Event Methods (==) :: DollarGestureEventData -> DollarGestureEventData -> Bool (/=) :: DollarGestureEventData -> DollarGestureEventData -> Bool | |
Ord DollarGestureEventData Source # | |
Defined in SDL.Event Methods compare :: DollarGestureEventData -> DollarGestureEventData -> Ordering (<) :: DollarGestureEventData -> DollarGestureEventData -> Bool (<=) :: DollarGestureEventData -> DollarGestureEventData -> Bool (>) :: DollarGestureEventData -> DollarGestureEventData -> Bool (>=) :: DollarGestureEventData -> DollarGestureEventData -> Bool max :: DollarGestureEventData -> DollarGestureEventData -> DollarGestureEventData min :: DollarGestureEventData -> DollarGestureEventData -> DollarGestureEventData | |
Show DollarGestureEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> DollarGestureEventData -> ShowS show :: DollarGestureEventData -> String showList :: [DollarGestureEventData] -> ShowS | |
Generic DollarGestureEventData Source # | |
Defined in SDL.Event Associated Types type Rep DollarGestureEventData :: Type -> Type Methods from :: DollarGestureEventData -> Rep DollarGestureEventData x to :: Rep DollarGestureEventData x -> DollarGestureEventData | |
type Rep DollarGestureEventData Source # | |
Defined in SDL.Event type Rep DollarGestureEventData = D1 ('MetaData "DollarGestureEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "DollarGestureEventData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dollarGestureEventTouchID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TouchID) :*: S1 ('MetaSel ('Just "dollarGestureEventGestureID") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GestureID)) :*: (S1 ('MetaSel ('Just "dollarGestureEventNumFingers") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "dollarGestureEventError") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "dollarGestureEventPos") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Point V2 CFloat)))))) |
Drag and drop events
newtype DropEventData Source #
An event used to request a file open by the system
Constructors
DropEventData | |
Fields
|
Instances
Eq DropEventData Source # | |
Defined in SDL.Event | |
Ord DropEventData Source # | |
Defined in SDL.Event Methods compare :: DropEventData -> DropEventData -> Ordering (<) :: DropEventData -> DropEventData -> Bool (<=) :: DropEventData -> DropEventData -> Bool (>) :: DropEventData -> DropEventData -> Bool (>=) :: DropEventData -> DropEventData -> Bool max :: DropEventData -> DropEventData -> DropEventData min :: DropEventData -> DropEventData -> DropEventData | |
Show DropEventData Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> DropEventData -> ShowS show :: DropEventData -> String showList :: [DropEventData] -> ShowS | |
Generic DropEventData Source # | |
Defined in SDL.Event Associated Types type Rep DropEventData :: Type -> Type | |
type Rep DropEventData Source # | |
Defined in SDL.Event type Rep DropEventData = D1 ('MetaData "DropEventData" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'True) (C1 ('MetaCons "DropEventData" 'PrefixI 'True) (S1 ('MetaSel ('Just "dropEventFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CString))) |
Unknown events
newtype UnknownEventData Source #
SDL reported an unknown event type.
Constructors
UnknownEventData | |
Fields
|
Instances
Auxiliary event data
data InputMotion Source #
Instances
Bounded InputMotion Source # | |
Defined in SDL.Event | |
Enum InputMotion Source # | |
Defined in SDL.Event Methods succ :: InputMotion -> InputMotion pred :: InputMotion -> InputMotion toEnum :: Int -> InputMotion fromEnum :: InputMotion -> Int enumFrom :: InputMotion -> [InputMotion] enumFromThen :: InputMotion -> InputMotion -> [InputMotion] enumFromTo :: InputMotion -> InputMotion -> [InputMotion] enumFromThenTo :: InputMotion -> InputMotion -> InputMotion -> [InputMotion] | |
Eq InputMotion Source # | |
Defined in SDL.Event | |
Data InputMotion Source # | |
Defined in SDL.Event Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InputMotion -> c InputMotion gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InputMotion toConstr :: InputMotion -> Constr dataTypeOf :: InputMotion -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InputMotion) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InputMotion) gmapT :: (forall b. Data b => b -> b) -> InputMotion -> InputMotion gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InputMotion -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InputMotion -> r gmapQ :: (forall d. Data d => d -> u) -> InputMotion -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> InputMotion -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> InputMotion -> m InputMotion gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InputMotion -> m InputMotion gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InputMotion -> m InputMotion | |
Ord InputMotion Source # | |
Defined in SDL.Event Methods compare :: InputMotion -> InputMotion -> Ordering (<) :: InputMotion -> InputMotion -> Bool (<=) :: InputMotion -> InputMotion -> Bool (>) :: InputMotion -> InputMotion -> Bool (>=) :: InputMotion -> InputMotion -> Bool max :: InputMotion -> InputMotion -> InputMotion min :: InputMotion -> InputMotion -> InputMotion | |
Read InputMotion Source # | |
Defined in SDL.Event Methods readsPrec :: Int -> ReadS InputMotion readList :: ReadS [InputMotion] readPrec :: ReadPrec InputMotion readListPrec :: ReadPrec [InputMotion] | |
Show InputMotion Source # | |
Defined in SDL.Event Methods showsPrec :: Int -> InputMotion -> ShowS show :: InputMotion -> String showList :: [InputMotion] -> ShowS | |
Generic InputMotion Source # | |
Defined in SDL.Event Associated Types type Rep InputMotion :: Type -> Type | |
type Rep InputMotion Source # | |
Defined in SDL.Event type Rep InputMotion = D1 ('MetaData "InputMotion" "SDL.Event" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) (C1 ('MetaCons "Released" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Pressed" 'PrefixI 'False) (U1 :: Type -> Type)) |
data MouseButton Source #
Constructors
ButtonLeft | |
ButtonMiddle | |
ButtonRight | |
ButtonX1 | |
ButtonX2 | |
ButtonExtra !Int | An unknown mouse button. |
Instances
Eq MouseButton Source # | |
Defined in SDL.Input.Mouse | |
Data MouseButton Source # | |
Defined in SDL.Input.Mouse Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MouseButton -> c MouseButton gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MouseButton toConstr :: MouseButton -> Constr dataTypeOf :: MouseButton -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MouseButton) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MouseButton) gmapT :: (forall b. Data b => b -> b) -> MouseButton -> MouseButton gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MouseButton -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MouseButton -> r gmapQ :: (forall d. Data d => d -> u) -> MouseButton -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> MouseButton -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> MouseButton -> m MouseButton gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseButton -> m MouseButton gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseButton -> m MouseButton | |
Ord MouseButton Source # | |
Defined in SDL.Input.Mouse Methods compare :: MouseButton -> MouseButton -> Ordering (<) :: MouseButton -> MouseButton -> Bool (<=) :: MouseButton -> MouseButton -> Bool (>) :: MouseButton -> MouseButton -> Bool (>=) :: MouseButton -> MouseButton -> Bool max :: MouseButton -> MouseButton -> MouseButton min :: MouseButton -> MouseButton -> MouseButton | |
Read MouseButton Source # | |
Defined in SDL.Input.Mouse Methods readsPrec :: Int -> ReadS MouseButton readList :: ReadS [MouseButton] readPrec :: ReadPrec MouseButton readListPrec :: ReadPrec [MouseButton] | |
Show MouseButton Source # | |
Defined in SDL.Input.Mouse Methods showsPrec :: Int -> MouseButton -> ShowS show :: MouseButton -> String showList :: [MouseButton] -> ShowS | |
Generic MouseButton Source # | |
Defined in SDL.Input.Mouse Associated Types type Rep MouseButton :: Type -> Type | |
ToNumber MouseButton Word8 Source # | |
Defined in SDL.Input.Mouse Methods toNumber :: MouseButton -> Word8 Source # | |
FromNumber MouseButton Word8 Source # | |
Defined in SDL.Input.Mouse Methods fromNumber :: Word8 -> MouseButton Source # | |
type Rep MouseButton Source # | |
Defined in SDL.Input.Mouse type Rep MouseButton = D1 ('MetaData "MouseButton" "SDL.Input.Mouse" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) ((C1 ('MetaCons "ButtonLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ButtonMiddle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ButtonRight" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ButtonX1" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ButtonX2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ButtonExtra" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))) |