Fixed some JNI errors. One remains.
This commit is contained in:
parent
0060b68efd
commit
be9286b6a0
|
@ -50,15 +50,11 @@ import org.lwjgl.Sys;
|
|||
*/
|
||||
public class Mouse {
|
||||
|
||||
static {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/** Has the mouse been created? */
|
||||
private static boolean created;
|
||||
|
||||
/** The mouse buttons status from the last poll */
|
||||
private static boolean[] buttons;
|
||||
private static boolean[] buttons = new boolean[4];
|
||||
|
||||
/** Delta X */
|
||||
public static int dx;
|
||||
|
@ -69,11 +65,15 @@ public class Mouse {
|
|||
/** Delta Z */
|
||||
public static int dwheel;
|
||||
|
||||
/** Number of buttons supported by the mouse */
|
||||
public static int buttonCount = -1;
|
||||
/** Number of buttons supported by the mouse */
|
||||
public static int buttonCount = -1;
|
||||
|
||||
/** Does this mouse support a scroll wheel */
|
||||
public static boolean hasWheel = false;
|
||||
/** Does this mouse support a scroll wheel */
|
||||
public static boolean hasWheel = false;
|
||||
|
||||
static {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mouse cannot be constructed.
|
||||
|
@ -96,7 +96,7 @@ public class Mouse {
|
|||
|
||||
/**
|
||||
* "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 {
|
||||
|
|
Loading…
Reference in New Issue