Difference between revisions of "GamepadButton"

(See Also)
m (Updated for 12.0)
 
Line 17: Line 17:
 
;dpleft: D-pad left.
 
;dpleft: D-pad left.
 
;dpright: D-pad right.
 
;dpright: D-pad right.
 +
{{New feature|12.0|
 +
;misc1: Xbox Series X controller share button, PS5 controller mic button, and Switch Pro controller capture button.
 +
;paddle1: First paddle button.
 +
;paddle2: Second paddle button.
 +
;paddle3: Third paddle button.
 +
;paddle4: Fourth paddle button.
 +
;touchpad: Controller touchpad press.
 +
}}
 +
 
== Notes ==
 
== 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.
 
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.

Latest revision as of 17:18, 11 November 2022

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.
Available since LÖVE 12.0
misc1
Xbox Series X controller share button, PS5 controller mic button, and Switch Pro controller capture button.
paddle1
First paddle button.
paddle2
Second paddle button.
paddle3
Third paddle button.
paddle4
Fourth paddle button.
touchpad
Controller touchpad press.


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