struct

SF::Event::JoystickButtonEvent

Inherits SF::Event / Struct / Value / Object

Joystick buttons events parameters (see JoystickButtonPressed, JoystickButtonReleased)

Constructors

Instance methods

button

Index of the button that has been pressed (in range 0 ... Joystick::ButtonCount)

Source
button=(button : Int)
Source
dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
joystick_id

Index of the joystick (in range 0 ... Joystick::Count)

Source
joystick_id=(joystick_id : Int)
Source