diff options
author | elias <[email protected]> | 2007-11-27 09:14:51 +0000 |
---|---|---|
committer | elias <[email protected]> | 2007-11-27 09:14:51 +0000 |
commit | 0454b0297c213cd2f64fcfcddb54790a4adf61de (patch) | |
tree | 31a04b5dd9513502e59d67ffb912c9017265dc31 | |
parent | 4fc3b45b8cc5c73b3a9fcefce1d6dd59d970a3af (diff) |
Made DirectAndRawInput the default windows plugin. Teach jinput about vista.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@211 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r-- | coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java index 3ce9b3f..e2e890b 100644 --- a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java +++ b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java @@ -133,7 +133,7 @@ class DefaultControllerEnvironment extends ControllerEnvironment { pluginClasses = pluginClasses + " net.java.games.input.LinuxEnvironmentPlugin"; } else if(osName.equals("Mac OS X")) { pluginClasses = pluginClasses + " net.java.games.input.OSXEnvironmentPlugin"; - } else if(osName.equals("Windows XP")) { + } else if(osName.equals("Windows XP") || osName.equals("Windows Vista")) { pluginClasses = pluginClasses + " net.java.games.input.DirectAndRawInputEnvironmentPlugin"; } else if(osName.equals("Windows 98") || osName.equals("Windows 2000")) { pluginClasses = pluginClasses + " net.java.games.input.DirectInputEnvironmentPlugin"; @@ -141,7 +141,7 @@ class DefaultControllerEnvironment extends ControllerEnvironment { System.out.println("WARNING: Found unknown Windows version: " + osName); System.out.println("Attempting to use default windows plug-in."); System.out.flush(); - pluginClasses = pluginClasses + " net.java.games.input.DirectInputEnvironmentPlugin"; + pluginClasses = pluginClasses + " net.java.games.input.DirectAndRawInputEnvironmentPlugin"; } else { System.out.println("Trying to use default plugin, OS name " + osName +" not recognised"); } |