Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | kakoeimon | |
Old Version | Published before Godot 3 was released. |
Hi.
I am trying to find a way to make my in game menus compatible with a joystick.
The menu is extremely simple, just a node with Button children.
Looking at the Inspector tab of the Buttons I can see the Focus Neighbor but I cannot understand how to use them or how to make a button focused.
Sorry about this, but I just found out how to do it.
To set a button focused you can use the method .grab_focus()
Afterwards everything works as expected.
kakoeimon | 2016-06-24 11:25
Please, convert your comment into an answer, so that this won’t show up in the unanswered list. (probably select it as a best answer as well.)
Bojidar Marinov | 2016-06-27 09:41