abstract struct SF::Event::JoystickMoveEvent

Overview

Joystick axis move event parameters (see JoystickMoved)

Direct Known Subclasses

Defined in:

window/obj.cr

Constructors

Instance Method Summary

Instance methods inherited from struct SF::Event

initialize initialize

Constructor methods inherited from struct SF::Event

new new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def axis : Joystick::Axis #

Axis on which the joystick moved


[View source]
def axis=(axis : Joystick::Axis) #

[View source]
def dup : JoystickMoveEvent #
Description copied from struct Value

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]
def joystick_id : UInt32 #

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


[View source]
def joystick_id=(joystick_id : Int) #

[View source]
def position : Float32 #

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


[View source]
def position=(position : Number) #

[View source]