Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home button on Xbox controller is not recognized #81454

Open
MrEliptik opened this issue Sep 8, 2023 · 2 comments
Open

Home button on Xbox controller is not recognized #81454

MrEliptik opened this issue Sep 8, 2023 · 2 comments

Comments

@MrEliptik
Copy link

MrEliptik commented Sep 8, 2023

Godot version

3.5.2.stable

System information

Windows 10, GLES3, GTX 1070 driver 537.13

Issue description

Steam asks that the controller home button (xbox in that case) should open the Steam Overlay.

  • When using an input action mapped to the home button, nothing happens.
  • When checking the event in _input(event), the event detected is InputEventKey with a scancode of 33554431 which is unknown.

The same issue was opened in 2021: #47579
and supposed to be fixed with #48934

The problem is not present in Godot 4.1.

I've tested this on Windows and Linux (Steam deck), with an Xbox One and Xbox Series controller, both in USB and wireless with the dongle. I've also tested the action with device 0 and all devices.

The button is correctly recognized by Steam and by this gamepad tester website: https://hardwaretester.com/gamepad

Steps to reproduce

  1. Add an action with a joy button mapped to 16: Home, DualShock PS, Guide on device 0 or all device
  2. Check Input.is_action_just_pressed("your_action") in _process, it does nothing

or

  1. In _input(event), check the following code, which will print 33554431 which is unknown key.
    if event is InputEventKey: print(event.scancode)

Minimal reproduction project

NA

@Chaosus Chaosus added this to the 3.x milestone Sep 13, 2023
@sirmike
Copy link

sirmike commented Jun 13, 2024

I also encountered this issue and can't figure it out. To add more details, PS5 controller works fine and PS button is recognized properly. At first I thought some app in the background might be stealing input. I exited Steam, Windows Gamebar etc. Still no success.

I can dig through the engine code and try fix it, but I don't know where to start. Could anyone give me any hint where to look and debug?

@akien-mga
Copy link
Member

akien-mga commented Jun 13, 2024

I would start looking at two possible reasons:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants