aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorendolf <[email protected]>2007-06-28 20:41:47 +0000
committerendolf <[email protected]>2007-06-28 20:41:47 +0000
commit1930bef63835ce80782deecfefea9d8637550e8c (patch)
tree19a2b4b1146c92b43c9922a3ca3d49980a68df1a
parentb2ed3b49ce0a0ea1b022bfb3b52ef938a72f3d72 (diff)
Revert last change, might be a rumbling only device, or a device with only subdevices.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@191 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r--plugins/windows/src/java/net/java/games/input/DirectInputEnvironmentPlugin.java5
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;
}