Is there a way to set a joystick press in the input map?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Magso

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?

:bust_in_silhouette: Reply From: Magso

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).