What is the keycode for left and right controller sticks?

Hi all,

From the Googling I have done it seems that there is no keycode for the left and right thumbsticks on a controller. Is this correct? This seems like a very basic thing to not have so I’m wondering if there is any truth to this.

if there is no keycode for the then what is the best way to reference those buttons without using the Input Manager? I would rather do it by code so I don’t have to fiddle with the IM every time I start a new game.

Thanks,

They should be in the axis manager by default (when you start a new project), so no fiddling:
https://wiki.unity3d.com/index.php/Xbox360Controller

and presumably, this means they are Keycode.JoystickButton8 etc

unless I’m missing something its just not there as an option under keycode. Everything I’ve read says that it’s only accessible via the input manager. I’m finding the Input manager to be extremely tedious when trying to setuip controls for a game for multiple controller types (xb1, ps4, pc)

for example joystick button0 is “A” on xbox1 where it is “square” on PS4. As a result I’m trying to do it all by code but I just can’t find a way to access the axis by code :frowning:

Something like this?
https://docs.unity3d.com/Packages/com.unity.inputsystem@0.1/api/UnityEngine.Experimental.Input.Plugins.XInput.XInputController.html

yes I suppose I’m looking for something like that. However it seems to be an experimental feature and im not sure how reliable it will be across platforms and time.

I was hoping that something so simple would just be a part of Unity