You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the library (version 2.26.5.0, 2.26.4.0 and 2.0.20.0) on Windows it seems that it will start allocating "User Objects" which will finally make the application unresponsive. On Mac and Linux this works without problems.
The interesting thing is that if the window of the related process is not in focus it will not create new user objects even though the example is a console application:
2024-02-29.10-03-52.mp4
Example program:
packagecom.willwinder.ugs.nbp.joystick;
importcom.studiohartman.jamepad.Configuration;
importcom.studiohartman.jamepad.ControllerManager;
importcom.studiohartman.jamepad.ControllerState;
publicclassTestMain {
publicstaticvoidmain(String[] args) {
Configurationconfiguration = newConfiguration();
ControllerManagercontrollerManager = newControllerManager(configuration, "/com/willwinder/ugs/nbp/joystick/gamecontrollerdb.txt");
controllerManager.initSDLGamepad();
// Print a message when the "A" button is pressed. Exit if the "B" button is pressed// or the controller disconnects.while (true) {
ControllerStatecurrState = controllerManager.getState(0);
if (!currState.isConnected || currState.b) {
break;
}
if (currState.a) {
System.out.println("\"A\" on \"" + currState.controllerType + "\" is pressed");
}
}
}
}
Tried with JDK Temurin 17.0.9 and Temuring 21.0.2.
The text was updated successfully, but these errors were encountered:
When using the library (version 2.26.5.0, 2.26.4.0 and 2.0.20.0) on Windows it seems that it will start allocating "User Objects" which will finally make the application unresponsive. On Mac and Linux this works without problems.
The interesting thing is that if the window of the related process is not in focus it will not create new user objects even though the example is a console application:
2024-02-29.10-03-52.mp4
Example program:
Tried with JDK Temurin 17.0.9 and Temuring 21.0.2.
The text was updated successfully, but these errors were encountered: