diff --git a/build/built-jar.properties b/build/built-jar.properties index a2afdd5..54e24d3 100644 --- a/build/built-jar.properties +++ b/build/built-jar.properties @@ -1,4 +1,4 @@ -#Wed, 08 Jun 2022 21:14:18 -0500 +#Wed, 08 Jun 2022 21:45:32 -0500 /home/niconiconii/Documents/jinput2.10= diff --git a/build/classes/net/java/games/input/AWTEnvironmentPlugin.class b/build/classes/net/java/games/input/AWTEnvironmentPlugin.class index 0d68ba6..08ae3f4 100644 Binary files a/build/classes/net/java/games/input/AWTEnvironmentPlugin.class and b/build/classes/net/java/games/input/AWTEnvironmentPlugin.class differ diff --git a/build/classes/net/java/games/input/DefaultControllerEnvironment.class b/build/classes/net/java/games/input/DefaultControllerEnvironment.class index d5bbbe8..2221516 100644 Binary files a/build/classes/net/java/games/input/DefaultControllerEnvironment.class and b/build/classes/net/java/games/input/DefaultControllerEnvironment.class differ diff --git a/build/classes/net/java/games/input/LinuxEnvironmentPlugin$1.class b/build/classes/net/java/games/input/LinuxEnvironmentPlugin$1.class index ba1cd00..69b94ac 100644 Binary files a/build/classes/net/java/games/input/LinuxEnvironmentPlugin$1.class and b/build/classes/net/java/games/input/LinuxEnvironmentPlugin$1.class differ diff --git a/build/classes/net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class b/build/classes/net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class index 2766221..d7b7936 100644 Binary files a/build/classes/net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class and b/build/classes/net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class differ diff --git a/build/classes/net/java/games/input/LinuxEnvironmentPlugin.class b/build/classes/net/java/games/input/LinuxEnvironmentPlugin.class index 1c3eb18..a2e83c4 100644 Binary files a/build/classes/net/java/games/input/LinuxEnvironmentPlugin.class and b/build/classes/net/java/games/input/LinuxEnvironmentPlugin.class differ diff --git a/build/classes/net/java/games/input/LinuxEventDevice.class b/build/classes/net/java/games/input/LinuxEventDevice.class index bc2f777..2071e51 100644 Binary files a/build/classes/net/java/games/input/LinuxEventDevice.class and b/build/classes/net/java/games/input/LinuxEventDevice.class differ diff --git a/build/classes/net/java/games/input/LinuxJoystickDevice.class b/build/classes/net/java/games/input/LinuxJoystickDevice.class index df7b1d8..436f8c6 100644 Binary files a/build/classes/net/java/games/input/LinuxJoystickDevice.class and b/build/classes/net/java/games/input/LinuxJoystickDevice.class differ diff --git a/dist/jinput-with-sources.jar b/dist/jinput-with-sources.jar index 2fa2a4e..b3465d6 100644 Binary files a/dist/jinput-with-sources.jar and b/dist/jinput-with-sources.jar differ diff --git a/dist/jinput.jar b/dist/jinput.jar index 686a891..1e0121c 100644 Binary files a/dist/jinput.jar and b/dist/jinput.jar differ diff --git a/src/plugins/linux/net/java/games/input/LinuxEnvironmentPlugin.java b/src/plugins/linux/net/java/games/input/LinuxEnvironmentPlugin.java index d015663..5aeab5a 100644 --- a/src/plugins/linux/net/java/games/input/LinuxEnvironmentPlugin.java +++ b/src/plugins/linux/net/java/games/input/LinuxEnvironmentPlugin.java @@ -122,6 +122,14 @@ public final class LinuxEnvironmentPlugin extends ControllerEnvironment implemen } public final Controller[] rescanControllers() { + for(int i = 0; i < devices.size(); i++) { + try { + LinuxDevice device = devices.get(i); + device.close(); + } catch(IOException e) { + log("Failed to close device: " + e.getMessage()); + } + } return enumerateControllers(); }