Difference between revisions of "GamepadAxis"

m
(Added diagram showing axis layout)
Line 6: Line 6:
 
;rightx: The x-axis of the right thumbstick.
 
;rightx: The x-axis of the right thumbstick.
 
;righty: The y-axis of the right thumbstick.
 
;righty: The y-axis of the right thumbstick.
;triggerleft: Left analogue trigger.
+
;triggerleft: Left analog trigger.
;triggerright: Right analogue trigger.
+
;triggerright: Right analog trigger.
 +
== Notes ==
 +
The physical locations of the virtual gamepad axes for a [[Joystick]] correspond as closely as possible to the layout of the axes on a standard Xbox 360 controller.
 +
 
 +
[[File:360_controller.png]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.joystick]]
 
* [[parent::love.joystick]]

Revision as of 01:49, 27 August 2013

Available since LÖVE 0.9.0
This enum is not supported in earlier versions.

Virtual gamepad axes.

Constants

leftx
The x-axis of the left thumbstick.
lefty
The y-axis of the left thumbstick.
rightx
The x-axis of the right thumbstick.
righty
The y-axis of the right thumbstick.
triggerleft
Left analog trigger.
triggerright
Right analog trigger.

Notes

The physical locations of the virtual gamepad axes for a Joystick correspond as closely as possible to the layout of the axes on a standard Xbox 360 controller.

360 controller.png

See Also

Other Languages