affection-0.0.0.9: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Subsystems.AffectionJoystick

Synopsis

Documentation

consumeSDLJoystickEvents Source #

Arguments

:: (Participant am us, Mesg am us ~ JoystickMessage) 
=> am

The message system participant

-> [EventPayload]

Incoming events

-> Affection us [EventPayload]

Leftover SDL events

Helper function that consumes all Joystick-related EventPayloads and emits appropriate JoystickMessages

joystickAutoConnect Source #

Arguments

:: JoystickMessage

Any JoystickMessage will do, but listens only on MsgJoystickDevice messages

-> Affection us (Maybe Joystick)

Returns a joystick descriptor, if successful

Helper function to automatically connect and open newly attached joystick devices

joystickAutoDisconnect Source #

Arguments

:: [Joystick]

List of Joystick descriptors

-> JoystickMessage

Any JoystickMessage will do, but listens specifically to MsgJoystickDevice messages

-> Affection us [Joystick]

Returns altered list of Joystick descriptors

Helper function to automatically close and disconnect freshly detached joystick devices