class GSF::Joysticks
- GSF::Joysticks
- Reference
- Object
Overview
NOTE buttons and axes mapped from Xbox 360 controller not sure if these are standardized across different controllers
Defined in:
gsf/joysticks.crConstant Summary
-
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 Method Summary
- #any_just_pressed?(id = 0)
- #any_pressed?(id = 0)
- #axis_just_moved_negative?(id : UInt32, axis : Axis)
- #axis_just_moved_negative?(axis : Axis)
- #axis_just_moved_positive?(id : UInt32, axis : Axis)
- #axis_just_moved_positive?(axis : Axis)
- #axis_moved(id : UInt32, axis : Axis, position : Float32)
- #axis_moved?(id : UInt32, axis : Axis, amount : Number)
- #axis_moved?(axis : Axis, amount : Number)
- #axis_position(id : UInt32, axis : Axis)
- #axis_position(axis : Axis)
- #connect(id : UInt32)
- #connected?(id : UInt32)
- #d_pad_just_moved_down?(id : UInt32)
- #d_pad_just_moved_down?
- #d_pad_just_moved_left?(id : UInt32)
- #d_pad_just_moved_left?
- #d_pad_just_moved_right?(id : UInt32)
- #d_pad_just_moved_right?
- #d_pad_just_moved_up?(id : UInt32)
- #d_pad_just_moved_up?
- #d_pad_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
- #d_pad_moved_down?(amount : Number = AxisMovedThreshold)
- #d_pad_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
- #d_pad_moved_left?(amount : Number = AxisMovedThreshold)
- #d_pad_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
- #d_pad_moved_right?(amount : Number = AxisMovedThreshold)
- #d_pad_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
- #d_pad_moved_up?(amount : Number = AxisMovedThreshold)
- #disconnect(id : UInt32)
- #just_pressed?(id : UInt32, button : Button)
- #just_pressed?(id : UInt32, buttons : Array(Button))
- #just_pressed?(button : Button)
- #just_pressed?(buttons : Array(Button))
- #left_stick_just_moved_down?(id : UInt32)
- #left_stick_just_moved_down?
- #left_stick_just_moved_left?(id : UInt32)
- #left_stick_just_moved_left?
- #left_stick_just_moved_right?(id : UInt32)
- #left_stick_just_moved_right?
- #left_stick_just_moved_up?(id : UInt32)
- #left_stick_just_moved_up?
- #left_stick_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
- #left_stick_moved_down?(amount : Number = AxisMovedThreshold)
- #left_stick_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
- #left_stick_moved_left?(amount : Number = AxisMovedThreshold)
- #left_stick_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
- #left_stick_moved_right?(amount : Number = AxisMovedThreshold)
- #left_stick_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
- #left_stick_moved_up?(amount : Number = AxisMovedThreshold)
- #pressed(id : UInt32, button : UInt32)
- #pressed?(id : UInt32, button : Button)
- #pressed?(id : UInt32, buttons : Array(Button))
- #pressed?(button : Button)
- #pressed?(buttons : Array(Button))
- #released(id : UInt32, button : UInt32)
- #reset
- #right_stick_just_moved_down?(id : UInt32)
- #right_stick_just_moved_down?
- #right_stick_just_moved_left?(id : UInt32)
- #right_stick_just_moved_left?
- #right_stick_just_moved_right?(id : UInt32)
- #right_stick_just_moved_right?
- #right_stick_just_moved_up?(id : UInt32)
- #right_stick_just_moved_up?
- #right_stick_moved_down?(id : UInt32, amount : Number = AxisMovedThreshold)
- #right_stick_moved_down?(amount : Number = AxisMovedThreshold)
- #right_stick_moved_left?(id : UInt32, amount : Number = AxisMovedThreshold)
- #right_stick_moved_left?(amount : Number = AxisMovedThreshold)
- #right_stick_moved_right?(id : UInt32, amount : Number = AxisMovedThreshold)
- #right_stick_moved_right?(amount : Number = AxisMovedThreshold)
- #right_stick_moved_up?(id : UInt32, amount : Number = AxisMovedThreshold)
- #right_stick_moved_up?(amount : Number = AxisMovedThreshold)