-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigating UI with joypad / gamepad is not working properly. #26825
Comments
Thanks! Looks like it. But the analog stick ui movement is a bug that should be fixed, and not mentioned over there. |
@groud indeed! It was me ahah. But I do believe that the issue he described with only up and right should be addressed, might be a consequence of your new implementation of the axes ( I guess they used to work because they behaved like keys in the past?) Might be worth addressing soon, right after 3.1 maybe? |
Ah indeed, there are two issues in one here. The positive value is a problem yes, I'll have a look. |
@groud maybe the generation of echo events for gamepad should be a setting in project setting (I'd say ON by default ..) As you can see in #18500 it's a matter of the user receiving events as they are from the input system or having an abstraction on top of it. I vote for abstraction + configuration, so that if someone needs the input as-is it is still possible. |
Godot version:
Godot 3.1 RC1
OS/device including version:
Windows 10. Regular Xbox One gamepad.
Issue description:
When holding down arrow keys on keyboard, the focus owner changes as expected. First when just pressed, then it jumps to the next one with a fixed delay ( echo ). I would expect this to happen also when holding down a button on my gamepad, and also when holding down the analog stick.
When holding down a button on the DPad, the focus just changes once. So we need to button mash to get to the end of the menu. Not sure if it is a bug, but i think there should be a simulated echo or something here.
Worst scenario is when using analog stick. It seems it changes focus every time the axis_value changes in the InputEventJoypadMotion. Even worse, it only goes in positive direction ( only down and right ). It should probably use sign of axis_value, instead of the absolute float value?
I dont even think this is a new bug. I think this has never worked. If anyone else know if this worked in the past, please leave a comment!
Steps to reproduce:
Just navigate around a menu with multiple buttons. Or use my sample project, where the Input map and scene is already prepared.
Minimal reproduction project:
ui_axis_bug.zip
The text was updated successfully, but these errors were encountered: