Page 1 of 1

Joystick Button String Names?

Posted: Mon Mar 02, 2015 8:13 pm
by i_love_u
So, I am using the code:

Code: Select all

joystick:isGamepadDown("?") 
for input(s) for my Xbox controller, but I need the names of the buttons.

Any help would be greatly appreciated!

Re: Joystick Button String Names?

Posted: Mon Mar 02, 2015 8:19 pm
by s-ol
Check the wiki, on the page for isGamepadDown (http://www.love2d.org/wiki/Joystick:isGamepadDown) it say that the button parameters are of type GamepadButton. That link leads here, where you can find a full list of all Joystick/Gamepad buttons.

L2/R2 are a third axis on most controllers.