From de335a22ccd4056a3e12192ba8f3254fd327b4cd Mon Sep 17 00:00:00 2001 From: endolf Date: Sun, 10 Jun 2007 15:03:27 +0000 Subject: 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 --- plugins/awt/src/net/java/games/input/AWTEnvironmentPlugin.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/awt/src/net/java/games') 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; + } } -- cgit v1.2.3