A menu navigable with a controller

Godot Version



To make my menu, I have watched a youtube tutorial.
I can use it with a mouse but I want to make it usable with a controller.
The code of the menu:

extends Control

func _on_play__pressed():
func _on_quit_pressed():

func _on_options_pressed():

I have three buttons : Play, Options and Quit.
How can I do ?

Hi, menus are navigable with controller by default. the ui actions in the input map (press show built in actions to show them) have controller bindings by default. all you need to do is to call the grab_focus function on one of the buttons on ready or when you want the player to be able to interact with the menu

1 Like