|Topic was automatically imported from the old Question2Answer platform.
In Project Settings > Input Map, the “ui_down” action is the action used by Godot’s native UI system for navigating downwards in whatever UI you are creating. Similarly for “ui_up”, “ui_left”, and “ui_right”.
Currently, I have “ui_up” mapped to the up key on the keyboard, dpad up on controller, and left stick up on controller. My menu is simply a collection of buttons arranged vertically. On load, the topmost button is selected and the user can navigate up or down.
Keyboard and controller dpad work fine, as they are digital button presses. Left stick up, however, is an axis, and so when you press it while on the menu, you simply fly through all the buttons in the menu, every tick of update.
So my question is, what’s a good way to keep “ui_up” mapped to joystick axis, but prevent flying through menus because of the analog input? Does Godot offer a simple way to do this out of the box, or do I need to do some custom scripting?