GamepadAxis

GamepadAxis

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

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/GamepadAxis

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部