You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input: analog values held when a capture ends come back at once #4009
After a capture ends (for example, a menu closes), a button that is still held stays hidden until it's pressed again. Analog values don't: they come back at once. A script that checks Trigger > 0.5 can then act on the same trigger pull that clicked the menu.
Where this happens:
GamePadDeviceBase.State: LeftTrigger, RightTrigger and the thumbsticks.
GameControllerDeviceBase.GetAxis and GetDirection.
All of them read neutral while the device is captured, so this only affects the time after the capture ends.
Possible fixes:
Hide an analog value while its matching button is suppressed, for example Trigger with TouchControllerButton.Trigger. Gamepad triggers have no matching button, so this doesn't cover them.
Hide each analog value that isn't neutral when the capture ends, until it goes back to neutral (below a small threshold). This works the same way for every device type, buttons or not.
The fix should cover gamepads, game controllers and VR together, so that they behave the same. Raised in the #3796 review.
Activity