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
Controllers stops working after screen mode changes #4723
Comments
I'm unable to reproduce this. I've tested with both lwjgl and lwjgl3 backends and my controllers keep working when I change the display mode. (I'm also on Windows 10 Pro x64) Could you please provide an executable example? |
I did some test and i have more info the problem comes whe i set the controllerlistener for expecific gamepad When i add the listener using Controllers.addListener all works fine ` public class testGame extends ApplicationAdapter {
}` |
I understand what's going on now. Ois requires the window handle so when that changes, a new instance of Ois is created. Because of that, the controllers array ends up getting cleared and re-populated. The listener attached to the "old" controller is not transferred to the "new" one. |
This has been fixed by #4743, right? |
Yes, thanks @intrigus |
This is only partially fixed. Event based listeners continue to work, yes, but polling the controller stops working after the screen mode changes. |
Hello.
i am trying to add gamepad support to my libgdx game and i am hacing a issue when the display mode changes (window to fullscreen or fullscreen to window)
the gamepad stops working after settings are updated
Controller devices: Xbox 360 Wired Controller for Windows, Eurocase EUGA-58,
Platform: Desktop (Windows 10 Pro 64 bits)
libGDX version: 1.9.5, 1.9.6 and 1.9.7-SNAPSHOT 26/4/2017 (all versions have the same problem)
The text was updated successfully, but these errors were encountered: