Difference between revisions of "GamepadButton"
m (Tweaked some button descriptions) |
m (Updated for 12.0) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
Virtual gamepad buttons. | Virtual gamepad buttons. | ||
== Constants == | == Constants == | ||
− | ;a: A | + | ;a: Bottom face button (A). |
− | ;b: B | + | ;b: Right face button (B). |
− | ;x: X | + | ;x: Left face button (X). |
− | ;y: Y | + | ;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 | + | ;leftshoulder: Left bumper. |
− | ;rightshoulder: Right | + | ;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. |
+ | {{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 == | ||
+ | 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 == | ||
+ | * [[GamepadAxis]] | ||
+ | |||
* [[parent::love.joystick]] | * [[parent::love.joystick]] | ||
* [[parent::Joystick]] | * [[parent::Joystick]] | ||
Line 23: | Line 38: | ||
[[Category:Enums]] | [[Category:Enums]] | ||
{{#set:Description=Virtual gamepad buttons.}} | {{#set:Description=Virtual gamepad buttons.}} | ||
+ | |||
== Other Languages == | == Other Languages == | ||
{{i18n|GamepadButton}} | {{i18n|GamepadButton}} |
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.
Contents
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.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info