Game Development Reference
In-Depth Information
Joystick related events
Enum value
Member associated
Description
Event::joystickConnect
holds the ID of the joystick just
connected/disconnected
Event::JoystickConnected
This event is triggered when a joystick con-
nects or disconnects.
Event::JoystickDisconnected
Event::joystickButton
holds the number of the button
pressed and the joystick ID
This is triggered when a button on a joystick
is pressed. SFML supports a maximum of 8
joysticks with up to 32 buttons each.
Event::JoystickButtonPressed
Event::JoystickButtonReleased
Event::joystickMove
This is triggered when an axis of a joystick is
moved. The move threshold can be set via
Window::setJoystickThreshold() .
SFML supports up to 8 axes.
holds the moved axis, the new
axis position, and the joystick
ID
Event::JoystickMoved
Search WWH ::




Custom Search