Fixed linux mouse creation
This commit is contained in:
parent
b6a13f736b
commit
b6390ef976
|
@ -307,7 +307,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
current_z = last_z = 0;
|
current_z = last_z = 0;
|
||||||
doWarpPointer();
|
|
||||||
for (i = 0; i < NUM_BUTTONS; i++)
|
for (i = 0; i < NUM_BUTTONS; i++)
|
||||||
buttons[i] = 0;
|
buttons[i] = 0;
|
||||||
if (!blankCursor()) {
|
if (!blankCursor()) {
|
||||||
|
@ -323,6 +322,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate
|
||||||
updateGrab();
|
updateGrab();
|
||||||
initEventQueue(&event_queue);
|
initEventQueue(&event_queue);
|
||||||
loadXcursor();
|
loadXcursor();
|
||||||
|
doWarpPointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy
|
JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy
|
||||||
|
|
Loading…
Reference in New Issue