aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/awt/src/net/java/games
diff options
context:
space:
mode:
authorendolf <[email protected]>2007-06-10 15:03:27 +0000
committerendolf <[email protected]>2007-06-10 15:03:27 +0000
commitde335a22ccd4056a3e12192ba8f3254fd327b4cd (patch)
treefe3c7c14775ca2bb3a7e90b29fe519c3d4056e23 /plugins/awt/src/net/java/games
parentf8ed18121deed1c97e28f229406a82bc980d8386 (diff)
Implement the isSupported method and make plugins work again. There was an issue where accessing the static methods in DefaultControllerEnvironment and ControllerEnvironment would cause ploblems when the plugins were loaded using the PluginLoader class loader.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@187 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/awt/src/net/java/games')
-rw-r--r--plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java b/plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java
index 96e5986..b6b062a 100644
--- a/plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java
+++ b/plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java
@@ -34,7 +34,8 @@ import net.java.games.util.plugins.Plugin;
* @author elias
*/
public class AWTEnvironmentPlugin extends ControllerEnvironment implements Plugin {
- private final Controller[] controllers;
+
+ private final Controller[] controllers;
public AWTEnvironmentPlugin() {
this.controllers = new Controller[]{new AWTKeyboard(), new AWTMouse()};
@@ -43,4 +44,8 @@ public class AWTEnvironmentPlugin extends ControllerEnvironment implements Plugi
public Controller[] getControllers() {
return controllers;
}
+
+ public boolean isSupported() {
+ return true;
+ }
}