Detecting xbox joypad HOME button

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By nekojita

Hello all,
Can Godot 3.3.2 detect the HOME button on xbox and xbox-like joypads? This example which prints button index/string on press, doesn’t do anything on HOME button pressed:

func _unhandled_input(event):
if event is InputEventJoypadButton and event.is_pressed():
	print(event.get_button_index()," ",Input.get_joy_button_string(event.get_button_index()))

The authorities at Steam really want this button to do something, as of late. Thanks for any help!

:bust_in_silhouette: Reply From: StopNot

If by HOME button you mean the Xbox button (at the top front face of the controller) then I would say probably not. On xbox this button is used for powering up the controller (and the console) and act as the home button for the OS. I have never seen an app or a game that would use it for something else. But to be honest this is just an educated guess.

If you are using windows then you could try the built-in ‘game controllers’ app to see if it detects the presses. If so then there’s hope.

Thank you for the answer and suggestion. Looks like a lost cause after no press detected in Windows gamepad settings

nekojita | 2021-06-23 15:12

No problem. I kind of suspected that would be the end result. Please vote my answer if you feel you got what you needed to know.

StopNot | 2021-06-23 18:16