Difference between revisions of "GamepadButton"

(See Also)
Line 22: Line 22:
 
[[File:360_controller.png]]
 
[[File:360_controller.png]]
 
== See Also ==
 
== See Also ==
 +
* [[GamepadAxis]]
 +
 
* [[parent::love.joystick]]
 
* [[parent::love.joystick]]
 
* [[parent::Joystick]]
 
* [[parent::Joystick]]
Line 27: Line 29:
 
[[Category:Enums]]
 
[[Category:Enums]]
 
{{#set:Description=Virtual gamepad buttons.}}
 
{{#set:Description=Virtual gamepad buttons.}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|GamepadButton}}
 
{{i18n|GamepadButton}}

Revision as of 11:47, 17 November 2021

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