class

GSF::Joysticks

Inherits Reference < Object

NOTE: buttons and axes mapped from Xbox 360 controller not sure if these are standardized across different controllers

Constants

AxisMovedThreshold = 50
DPadX = Axis::PovX
DPadY = Axis::PovY
LeftStickX = Axis::X
LeftStickY = Axis::Y
LeftTrigger = Axis::Z
RightStickX = Axis::U
RightStickY = Axis::V
RightTrigger = Axis::Z
Trigger = Axis::Z

NOTE: Axis::Z is a combination of Left and Right Triggers, they cancel each other out

Constructors

Instance methods

any_just_pressed?(id = 0)
Source
any_pressed?(id = 0)
Source
axis_just_moved_negative?(id : UInt32, axis : Axis)
Source
axis_just_moved_negative?(axis : Axis)
Source
axis_just_moved_positive?(id : UInt32, axis : Axis)
Source
axis_just_moved_positive?(axis : Axis)
Source
axis_moved(id : UInt32, axis : Axis, position : Float32)
Source
axis_moved?(id : UInt32, axis : Axis, amount : Number)
Source
axis_moved?(axis : Axis, amount : Number)
Source
axis_position(id : UInt32, axis : Axis)
Source
axis_position(axis : Axis)
Source
connect(id : UInt32)
Source
connected?(id : UInt32)
Source
d_pad_just_moved_down?(id : UInt32)
Source
d_pad_just_moved_down?
Source
d_pad_just_moved_left?(id : UInt32)
Source
d_pad_just_moved_left?
Source
d_pad_just_moved_right?(id : UInt32)
Source
d_pad_just_moved_right?
Source
d_pad_just_moved_up?(id : UInt32)
Source
d_pad_just_moved_up?
Source
d_pad_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
d_pad_moved_down?(amount : Number = AxisMovedThreshold)
Source
d_pad_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
d_pad_moved_left?(amount : Number = AxisMovedThreshold)
Source
d_pad_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
d_pad_moved_right?(amount : Number = AxisMovedThreshold)
Source
d_pad_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
d_pad_moved_up?(amount : Number = AxisMovedThreshold)
Source
disconnect(id : UInt32)
Source
just_pressed?(id : UInt32, button : Button)
Source
just_pressed?(id : UInt32, buttons : Array(Button))
Source
just_pressed?(button : Button)
Source
just_pressed?(buttons : Array(Button))
Source
left_stick_just_moved_down?(id : UInt32)
Source
left_stick_just_moved_down?
Source
left_stick_just_moved_left?(id : UInt32)
Source
left_stick_just_moved_left?
Source
left_stick_just_moved_right?(id : UInt32)
Source
left_stick_just_moved_right?
Source
left_stick_just_moved_up?(id : UInt32)
Source
left_stick_just_moved_up?
Source
left_stick_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
left_stick_moved_down?(amount : Number = AxisMovedThreshold)
Source
left_stick_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
left_stick_moved_left?(amount : Number = AxisMovedThreshold)
Source
left_stick_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
left_stick_moved_right?(amount : Number = AxisMovedThreshold)
Source
left_stick_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
left_stick_moved_up?(amount : Number = AxisMovedThreshold)
Source
pressed(id : UInt32, button : UInt32)
Source
pressed?(id : UInt32, button : Button)
Source
pressed?(id : UInt32, buttons : Array(Button))
Source
pressed?(button : Button)
Source
pressed?(buttons : Array(Button))
Source
released(id : UInt32, button : UInt32)
Source
reset
Source
right_stick_just_moved_down?(id : UInt32)
Source
right_stick_just_moved_down?
Source
right_stick_just_moved_left?(id : UInt32)
Source
right_stick_just_moved_left?
Source
right_stick_just_moved_right?(id : UInt32)
Source
right_stick_just_moved_right?
Source
right_stick_just_moved_up?(id : UInt32)
Source
right_stick_just_moved_up?
Source
right_stick_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
right_stick_moved_down?(amount : Number = AxisMovedThreshold)
Source
right_stick_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
right_stick_moved_left?(amount : Number = AxisMovedThreshold)
Source
right_stick_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
right_stick_moved_right?(amount : Number = AxisMovedThreshold)
Source
right_stick_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
Source
right_stick_moved_up?(amount : Number = AxisMovedThreshold)
Source

Nested types