aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}