Difference between revisions of "GamepadButton"

m (Tweaked some button descriptions)
(Added diagram showing button layout)
Line 2: Line 2:
 
Virtual gamepad buttons.
 
Virtual gamepad buttons.
 
== Constants ==
 
== Constants ==
;a: A (bottom) face button.
+
;a: Bottom face button (A).
;b: B (right) face button.
+
;b: Right face button (B).
;x: X (left) face button.
+
;x: Left face button (X).
;y: Y (top) face button.
+
;y: Top face button (Y).
 
;back: Back button.
 
;back: Back button.
 
;guide: Guide button.
 
;guide: Guide button.
Line 11: Line 11:
 
;leftstick: Left stick click button.
 
;leftstick: Left stick click button.
 
;rightstick: Right stick click button.
 
;rightstick: Right stick click button.
;leftshoulder: Left shoulder button.
+
;leftshoulder: Left bumper.
;rightshoulder: Right shoulder button.
+
;rightshoulder: Right bumper.
 
;dpup: D-pad up.
 
;dpup: D-pad up.
 
;dpdown: D-pad down.
 
;dpdown: D-pad down.
 
;dpleft: D-pad left.
 
;dpleft: D-pad left.
 
dpright: D-pad right.
 
dpright: D-pad right.
 +
== Notes ==
 +
The physical locations of the virtual gamepad buttons for a [[Joystick]] correspond as closely as possible to the layout of the buttons on a standard Xbox 360 controller.
 +
 +
[[File:360_controller.png]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.joystick]]
 
* [[parent::love.joystick]]

Revision as of 01:43, 27 August 2013

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

Virtual gamepad buttons.

Constants

a
Bottom face button (A).
b
Right face button (B).
x
Left face button (X).
y
Top face button (Y).
back
Back button.
guide
Guide button.
start
Start button.
leftstick
Left stick click button.
rightstick
Right stick click button.
leftshoulder
Left bumper.
rightshoulder
Right bumper.
dpup
D-pad up.
dpdown
D-pad down.
dpleft
D-pad left.

dpright: D-pad right.

Notes

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

360 controller.png

See Also

Other Languages