Trouble with Gamepad Input handling #537
Unanswered
FlyingChopstick
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This sounds like a Windows 11 bug
This sounds like a GLFW bug. We will try to reproduce this on Windows 10. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Following the InputTest (Lab/Experiments), I am trying to connect a xbox 360 gamepad.
Every following function is more or less a copy of the example.
On window Load the input is created, the event attached.
ConnectDevices() passes found gamepads to ConnectGamepad() through ConnectInput()
Everything works fine: the window is rendered, it fires all the events. until you disconnect the gamepad. Then it goes to the infinite loop on Window.Run() with Glfw.GetGamepadState() on top of the stack. The window is permanently frozen and the process can't be stopped, except by reboot.
Keyboards and mice are connected the same way, with no problem on connect/disconnect, though the ConnectionChanged event is not fired for them.
I feel like I do something wrong but am unable to find what.
Any help or advice will be appreciated.
Edit: I am using Windows 11 and .NET 5, if it is relevant
Beta Was this translation helpful? Give feedback.
All reactions