Game Development Reference
Joystick related events
holds the ID of the joystick just
This event is triggered when a joystick con-
nects or disconnects.
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.
This is triggered when an axis of a joystick is
moved. The move threshold can be set via
SFML supports up to 8 axes.
holds the moved axis, the new
axis position, and the joystick