1
0
forked from Clones/Controlify

restore behaviour of setting initial controller

This commit is contained in:
isXander
2023-02-23 18:38:50 +00:00
parent c2f1670d27
commit b6dd67b3c4

View File

@ -67,6 +67,10 @@ public class Controlify {
} }
} }
if (currentController() == Controller.DUMMY && config().isFirstLaunch()) {
this.setCurrentController(Controller.CONTROLLERS.values().stream().findFirst().orElse(null));
}
// listen for new controllers // listen for new controllers
GLFW.glfwSetJoystickCallback((jid, event) -> { GLFW.glfwSetJoystickCallback((jid, event) -> {
if (event == GLFW.GLFW_CONNECTED) { if (event == GLFW.GLFW_CONNECTED) {