From eb1b5b0dbb319f96990a4dd91d2b5534c3d09f58 Mon Sep 17 00:00:00 2001 From: endolf Date: Thu, 2 Aug 2007 20:13:51 +0000 Subject: Tidy up git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@196 e343933a-64c8-49c5-92b1-88f2ce3e89e8 --- .../games/input/DirectAndRawInputEnvironmentPlugin.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/windows/src/java/net/java/games/input/DirectAndRawInputEnvironmentPlugin.java b/plugins/windows/src/java/net/java/games/input/DirectAndRawInputEnvironmentPlugin.java index 29e2b40..c789986 100644 --- a/plugins/windows/src/java/net/java/games/input/DirectAndRawInputEnvironmentPlugin.java +++ b/plugins/windows/src/java/net/java/games/input/DirectAndRawInputEnvironmentPlugin.java @@ -26,9 +26,14 @@ package net.java.games.input; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; +/** + * Combines the list of seperate keyboards and mice found with the raw plugin, + * with the game controllers found with direct input. + * + * @author Jeremy + */ public class DirectAndRawInputEnvironmentPlugin extends ControllerEnvironment { private RawInputEnvironmentPlugin rawPlugin; @@ -41,6 +46,9 @@ public class DirectAndRawInputEnvironmentPlugin extends ControllerEnvironment { rawPlugin = new RawInputEnvironmentPlugin(); } + /** + * @see net.java.games.input.ControllerEnvironment#getControllers() + */ public Controller[] getControllers() { if(controllers == null) { boolean rawKeyboardFound = false; @@ -76,6 +84,9 @@ public class DirectAndRawInputEnvironmentPlugin extends ControllerEnvironment { return controllers; } + /** + * @see net.java.games.input.ControllerEnvironment#isSupported() + */ public boolean isSupported() { return rawPlugin.isSupported() || dinputPlugin.isSupported(); } -- cgit v1.2.3