diff options
-rw-r--r-- | plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java b/plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java index d61748e..5e31bad 100644 --- a/plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java +++ b/plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java @@ -174,10 +174,7 @@ public final class DirectInputEnvironmentPlugin extends ControllerEnvironment im private final AbstractController createControllerFromDevice(IDirectInputDevice device, Controller.Type type) { Component[] components = createComponents(device, false); - AbstractController controller = null; - if(type == Controller.Type.UNKNOWN && components.length>0) { - controller = new DIAbstractController(device, components, new Controller[]{}, device.getRumblers(), type); - } + AbstractController controller = new DIAbstractController(device, components, new Controller[]{}, device.getRumblers(), type); return controller; } |