Skip to content

abstract struct SF::Event::JoystickMoveEvent
inherits SF::Event #

Joystick axis move event parameters (see JoystickMoved)

Direct known subclasses

SF::Event::JoystickMoved

Constructors#

Methods#

#axis : Joystick::Axis#

Axis on which the joystick moved

View source

#axis=(axis : Joystick::Axis)#

View source

#dup : JoystickMoveEvent#

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.

View source

#joystick_id : UInt32#

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

View source

#joystick_id=(joystick_id : Int)#

View source

#position : Float32#

New position on the axis (in range -100 .. 100)

View source

#position=(position : Number)#

View source