GSF::Joysticks
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
new
SourceInstance methods
any_just_pressed?(id = 0)
Sourceany_pressed?(id = 0)
Sourceaxis_just_moved_negative?(axis : Axis)
Sourceaxis_just_moved_positive?(axis : Axis)
Sourceaxis_position(axis : Axis)
Sourced_pad_just_moved_down?
Sourced_pad_just_moved_left?
Sourced_pad_just_moved_right?
Sourced_pad_just_moved_up?
Sourcejust_pressed?(button : Button)
Sourceleft_stick_just_moved_down?
Sourceleft_stick_just_moved_left?
Sourceleft_stick_just_moved_right?
Sourceleft_stick_just_moved_up?
Sourcepressed?(button : Button)
Sourcereset
Sourceright_stick_just_moved_down?
Sourceright_stick_just_moved_left?
Sourceright_stick_just_moved_right?
Sourceright_stick_just_moved_up?
Source