aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeffpk <[email protected]>2005-08-23 20:59:32 +0000
committerjeffpk <[email protected]>2005-08-23 20:59:32 +0000
commit11461384230f3aa88478e67902b65ecb5732e255 (patch)
tree31b149172702b709f00082cbb42112839eb79c63
parent93647ae6e78b257377ae4805eb7a8e5a568733da (diff)
Added handlign for unknown windows versions
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@108 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r--coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
index 3ef7903..e94b769 100644
--- a/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
+++ b/coreAPI/src/java/net/java/games/input/DefaultControllerEnvironment.java
@@ -123,6 +123,11 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
pluginClasses = pluginClasses + " net.java.games.input.OSXEnvironmentPlugin";
} else if(osName.equals("Windows 98") || osName.equals("Windows 2000") || osName.equals("Windows XP")) {
pluginClasses = pluginClasses + " net.java.games.input.DirectInputEnvironmentPlugin";
+ } else if(osName.startsWith("Windows")) {
+ 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";
} else {
System.out.println("Trying to use default plugin, OS name " + osName +" not recognised");
}