This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello,

Let's say I have several buttons in a menu.
The last button's "bottom neighbor" is the first button on the list.
The first button's "top neighbor" is the last button on the list.
Then holding down ui_down or ui_up would result in infinite scrolling at an insane speed.
How would I go about adjusting the speed?

Godot version v3.4.stable.official [206ba70f4]
in Engine by (95 points)

Maybe have the program check for how long ui_up or ui_down is being pressed? If the inputs are pressed for a certain amount of time, then the next button in line can gain focus.

I think I managed to check how long the input is being pressed for.
However, I'm not sure how to actually modify any ui input behavior such as ui_up and ui_down because the focus control is already pre-set by Godot.
Do you happen to know where to look?

Here's an article in the documentation which shows you how to assign the input navigation focus for buttons and other Control nodes.

it explains nothing about what I'm trying to achieve :/

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.