|
From: Brian M. <ma...@us...> - 2003-02-10 23:09:59
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv13498 Modified Files: Mouse.java Log Message: formatting and better javadoc Index: Mouse.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Mouse.java 8 Feb 2003 19:30:07 -0000 1.12 +++ Mouse.java 10 Feb 2003 23:09:54 -0000 1.13 @@ -41,8 +41,9 @@ * A raw Mouse interface. This can be used to poll the current state of the * mouse buttons, and determine the mouse movement delta since the last poll. * - * Up to 8 buttons are available. A scrolly wheel, if present, is the z - * value. This will be in the range of -10000 to +10000. + * n buttons supported, n being a native limit. A scrolly wheel is also + * supported, if one such is available. All movement is reported as delta from + * last position. * * @author cix_foo <ci...@us...> * @version $Revision$ @@ -68,8 +69,10 @@ /** Delta Z */ public static int dwheel; - /* Mouse capabilities */ + /** Number of buttons supported by the mouse */ public static int buttonCount = -1; + + /** Does this mouse support a scroll wheel */ public static boolean hasWheel = false; /** @@ -93,6 +96,7 @@ /** * "Create" the mouse. The display must first have been created. + * * @throws Exception if the mouse could not be created for any reason */ public static void create() throws Exception { @@ -143,7 +147,7 @@ /** * See if a particular mouse button is down. * - * @param button The index of the button you wish to test (0..buttonCount) + * @param button The index of the button you wish to test (0..buttonCount-1) * @return true if the specified button is down */ public static boolean isButtonDown(int button) { |