0 votes

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!

Godot version 3.3.2.stable.officlal
in Engine by (20 points)

1 Answer

+2 votes
Best answer

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.

by (86 points)
selected by

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

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.

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.