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

internal/gamepad: gamepad standard mappings don't work #2964

Closed
7 of 11 tasks
hajimehoshi opened this issue Apr 18, 2024 · 2 comments
Closed
7 of 11 tasks

internal/gamepad: gamepad standard mappings don't work #2964

hajimehoshi opened this issue Apr 18, 2024 · 2 comments

Comments

@hajimehoshi
Copy link
Owner

hajimehoshi commented Apr 18, 2024

Ebitengine Version

v2.7.1

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

go version go1.22.0 windows/arm64

What steps will reproduce the problem?

  1. Connect a PS5 dual sense controller via Bluetooth
  2. Run examples/gamepad

What is the expected result?

The gamepad is mapped as XInput Controller (GLFW) with a standard mapping

What happens instead?

The gamepad is mapped as Xbox Controller without a standard mapping

Anything else you feel useful to add?

This works with Ebitengine v2.6.7

@hajimehoshi hajimehoshi added this to the v2.7.2 milestone Apr 18, 2024
@hajimehoshi
Copy link
Owner Author

6552ae1 is the culprit

hajimehoshi added a commit that referenced this issue Apr 18, 2024
After 6552ae1, the order of the init
function calls changed, and then the platform was not initialized
correctly.

This change fixes this issue by not relying on an init function to
get the platform.

Closes #2964
@hajimehoshi
Copy link
Owner Author

macOS had the same issue... 😢

@hajimehoshi hajimehoshi changed the title internal/gamepad: PS5 Dual Sense bluetooth controller's standard mapping doesn't work on Windows internal/gamepad: gamepad standard mappings don't work Apr 18, 2024
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

1 participant