I am trying to use the focus_next, focus_previous, and the focus_neighbor-type Control properties to make a series of buttons able to be selected for an RPG-like project that I am collaborating on. Specifically, I want to make it so that the buttons can be selected with the arrow keys/d-pad, and pressing enter will execute the action for the button that is selected. The API documentation was very vague, and left me with plenty of questions. If anyone has dealt with this before, please share with me your insights. Thanks to all who are willing to help me with this.

I never worked with this focus_next etc. things but couldn't you just code something like $button_next.grab_focus() && $button_previous.release_focus() when pressing arrow keys?

7 days later

That sounds about right, but I stopped trying to use this method and instead I'm just using labels and animating the selected ones. I still wish there were better documentation for these button properties.

4 years later