0 votes

There isn't an option for joystick press/release in the input map.
The joy button list covers all the buttons except for the joysticks. The joy axis list has loads of options however except for 'Axis 6 + (L2)' & 'Axis 7 + (R2)' there's no information of the axes below Axis 3 + so could it possibly be any of them?

the input code for the joystick presses is

Input.is_joy_button_pressed(0, 8) #Left joystick
Input.is_joy_button_pressed(0, 9) #Right joystick

but would this work for all controllers?

in Engine by (3,211 points)

1 Answer

0 votes

It was quite self explanatory actually. They are in the joy button list 8 & 9 but they're called L3 and R3; not really a 'joystick' related name so I overlooked them thinking they were for support for some other controller that has a 3rd L + R (you never know these days).

by (3,211 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.