Closed Hatchibombotar closed 2 months ago
Which USB or bluetooth was the controller connected? Thanks,
It was connected by bluetooth. Just tested now and connecting by USB does work
OK, this doesn't work only when connecting it via bluetooth. Another question: does this work with Ebitengine v2.6.7?
It does not.
Sure, so this is not a regression. TBH I'm not sure I can fix this, but I'll tackle this tomorrow. Thank you for reporting this!
@Hatchibombotar - Hello, just to double-check, did you iterate through other gamepad ID's, just to see if it's reported as ID 1 or 2, by chance?
I failed to reproduce this issue on my Windows (Parallels):
PS Microsoft.PowerShell.Core\FileSystem::\\Mac\Home\ebiten> go run .\examples\gamepad
2024/04/26 00:29:04 gamepad connected: id: 0, SDL ID: 78696e70757401000000000000000000
2024/04/26 00:29:08 button pressed: id: 0, button: 1
2024/04/26 00:29:08 standard button pressed: id: 0, button: 1
2024/04/26 00:29:08 button pressed: id: 0, button: 0
2024/04/26 00:29:08 standard button pressed: id: 0, button: 0
2024/04/26 00:29:08 button released: id: 0, button: 1
2024/04/26 00:29:08 standard button released: id: 0, button: 1
2024/04/26 00:29:08 button released: id: 0, button: 0
2024/04/26 00:29:08 standard button released: id: 0, button: 0
Your ID was 030000004c050000c405000000000000 (PS4 Controller) while mine was 78696e70757401000000000000000000 (XInput Gamepad (GLFW)). I'm not 100% sure but upgrading or installing DirectX might resolve the issue.
Does this still happen with v2.7.8? This might be related to #3046
Let me close this. Feel free to revisit this when you still have this issue.
Ebitengine Version
2.7.2
Operating System
Go Version (
go version
)go1.22.0 windows/amd64
What steps will reproduce the problem?
go mod init example/project
go mod tidy
, thengo run .
What is the expected result?
Button inputs are recognised
What happens instead?
No other output appears after these lines.
Anything else you feel useful to add?
Using a ps4 dualshock controller, but may not be exclusive to this one. I don't have another one to test with. Windows 11 Home, 23H2 Example works in the web browser