- Home /
How to get stick == neutral using new Input System
I'm trying to use the new Input System to implement a UI toggle system using the left analog stick on a gamepad. I'm using the "Left Stick/X" binding and I would expect this to fire every time the X axis value changes, but this doesn't seem to be the case and I'm therefore unable to respond to the stick moving to a neutral position (X ~= 0).
It appears that the action is only performed when the X value is greater than 0.5 or less than -0.5. At first I thought maybe this is because of a dead zone setting, but setting the dead zone to min = 0 and max = 1 didn't change this behavior. I've tried looking for input system documentation, but I can't find complete documentation anywhere (no documentation on stick X/Y bindings).
My goal is to have a three state system based on the X axis value wherein X > [some value] gives one set of UI buttons, X ~= 0 gives another set and X < [some value] gives a third set. Is this possible with the Input System, or do I need to manually check and handle the X axis value every frame?