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 {
|
public class Mouse {
|
||||||
|
|
||||||
static {
|
|
||||||
initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Has the mouse been created? */
|
/** Has the mouse been created? */
|
||||||
private static boolean created;
|
private static boolean created;
|
||||||
|
|
||||||
/** The mouse buttons status from the last poll */
|
/** The mouse buttons status from the last poll */
|
||||||
private static boolean[] buttons;
|
private static boolean[] buttons = new boolean[4];
|
||||||
|
|
||||||
/** Delta X */
|
/** Delta X */
|
||||||
public static int dx;
|
public static int dx;
|
||||||
|
@ -69,11 +65,15 @@ public class Mouse {
|
||||||
/** Delta Z */
|
/** Delta Z */
|
||||||
public static int dwheel;
|
public static int dwheel;
|
||||||
|
|
||||||
/** Number of buttons supported by the mouse */
|
/** Number of buttons supported by the mouse */
|
||||||
public static int buttonCount = -1;
|
public static int buttonCount = -1;
|
||||||
|
|
||||||
/** Does this mouse support a scroll wheel */
|
/** Does this mouse support a scroll wheel */
|
||||||
public static boolean hasWheel = false;
|
public static boolean hasWheel = false;
|
||||||
|
|
||||||
|
static {
|
||||||
|
initialize();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mouse cannot be constructed.
|
* Mouse cannot be constructed.
|
||||||
|
@ -96,7 +96,7 @@ public class Mouse {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "Create" the mouse. The display must first have been created.
|
* "Create" the mouse. The display must first have been created.
|
||||||
*
|
*
|
||||||
* @throws Exception if the mouse could not be created for any reason
|
* @throws Exception if the mouse could not be created for any reason
|
||||||
*/
|
*/
|
||||||
public static void create() throws Exception {
|
public static void create() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue