|
From: Elias N. <eli...@us...> - 2004-11-08 12:11:51
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22734/src/native/linux Modified Files: org_lwjgl_input_Mouse.c Log Message: Index: org_lwjgl_input_Mouse.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- org_lwjgl_input_Mouse.c 5 Nov 2004 10:30:04 -0000 1.18 +++ org_lwjgl_input_Mouse.c 8 Nov 2004 12:11:42 -0000 1.19 @@ -53,6 +53,8 @@ #define NUM_BUTTONS 3 +#define EVENT_SIZE 5 + #define POINTER_WARP_BORDER 10 // scale the mouse wheel according to win32 #define WHEEL_SCALE 120 @@ -241,6 +243,7 @@ static void resetCursorToCenter(void) { resetCursor(getWindowWidth()/2, transformY(getWindowHeight()/2)); + initEventQueue(&event_queue, EVENT_SIZE); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_createMouse @@ -264,7 +267,7 @@ pointer_grabbed = false; buffer_enabled = false; updatePointerGrab(); - initEventQueue(&event_queue, 5); + initEventQueue(&event_queue, EVENT_SIZE); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_destroyMouse |