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;
|
||||||
|
@ -75,6 +71,10 @@ public class Mouse {
|
||||||
/** 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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue