You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(3) |
2
|
3
(1) |
4
|
|
5
|
6
(5) |
7
(11) |
8
(7) |
9
|
10
(3) |
11
(12) |
|
12
|
13
(2) |
14
(7) |
15
(3) |
16
(3) |
17
|
18
|
|
19
|
20
(11) |
21
(5) |
22
(12) |
23
(10) |
24
(8) |
25
(4) |
|
26
(1) |
27
|
28
(13) |
29
(1) |
30
|
31
|
|
|
From: Caspian Rychlik-P. <ci...@us...> - 2003-10-08 10:56:29
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv2026/src/native/win32 Modified Files: org_lwjgl_Display.cpp Log Message: Minor casting adjustment to work around a compiler bug Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- org_lwjgl_Display.cpp 28 Sep 2003 06:55:00 -0000 1.50 +++ org_lwjgl_Display.cpp 8 Oct 2003 10:56:24 -0000 1.51 @@ -110,7 +110,7 @@ printf("Querying %s device\n", DisplayDevice.DeviceString); #endif j = 0; - while(EnumDisplaySettingsExA(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { + while(EnumDisplaySettingsExA((const char *) DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { #ifdef _DEBUG printf("Checking setting #%d\n", j); #endif @@ -134,7 +134,7 @@ i = 0, n = 0; while(EnumDisplayDevicesA(NULL, i++, &DisplayDevice, 0) != 0) { j = 0; - while(EnumDisplaySettingsExA(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { + while(EnumDisplaySettingsExA((const char *) DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { // Filter out indexed modes if (DevMode.dmBitsPerPel > 8) { jobject displayMode; |
|
From: Elias N. <eli...@us...> - 2003-10-08 10:05:38
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/macosx In directory sc8-pr-cvs1:/tmp/cvs-serv27427 Modified Files: org_lwjgl_input_Mouse.cpp org_lwjgl_opengl_Window.cpp Removed Files: org_lwjgl_Window.cpp Log Message: Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- org_lwjgl_input_Mouse.cpp 8 Oct 2003 07:46:50 -0000 1.8 +++ org_lwjgl_input_Mouse.cpp 8 Oct 2003 10:05:34 -0000 1.9 @@ -45,22 +45,34 @@ #define NUM_BUTTONS 7 +static jfieldID fid_dx; +static jfieldID fid_dy; +static jfieldID fid_dwheel; +static jfieldID fid_buttons; + static unsigned char button_state[NUM_BUTTONS]; static int last_x; static int last_y; +static int wheel_dz; static pascal OSStatus doMouseDown(EventHandlerCallRef next_handler, EventRef event, void *user_data) { printf("Mouse down\n"); + lock(); + unlock(); return eventNotHandledErr; // allow the event to propagate } static pascal OSStatus doMouseUp(EventHandlerCallRef next_handler, EventRef event, void *user_data) { printf("Mouse up\n"); + lock(); + unlock(); return eventNotHandledErr; // allow the event to propagate } static pascal OSStatus doMouseWheel(EventHandlerCallRef next_handler, EventRef event, void *user_data) { printf("Mouse wheel\n"); + lock(); + unlock(); return noErr; } @@ -80,6 +92,10 @@ } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_initIDs(JNIEnv * env, jclass clazz) { + fid_dx = env->GetStaticFieldID(clazz, "dx", "I"); + fid_dy = env->GetStaticFieldID(clazz, "dy", "I"); + fid_dwheel = env->GetStaticFieldID(clazz, "dwheel", "I"); + fid_buttons = env->GetStaticFieldID(clazz, "buttons", "[Z"); } JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nGetNativeCursorCaps(JNIEnv *env, jclass clazz) { @@ -97,18 +113,32 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate(JNIEnv * env, jclass clazz) { last_x = 0; last_y = 0; + wheel_dz = 0; + CGAssociateMouseAndMouseCursorPosition(FALSE); } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy(JNIEnv * env, jclass clazz) { + CGAssociateMouseAndMouseCursorPosition(TRUE); } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nPoll(JNIEnv * env, jclass clazz) { - Point cursor_pos; + lock(); + /*Point cursor_pos; GetMouse(&cursor_pos); int dx = cursor_pos.v - last_x; int dy = cursor_pos.h - last_y; last_x += dx; - last_y += dy; + last_y += dy;*/ + CGMouseDelta dx, dy; + CGGetLastMouseDelta(&dx, &dy); + env->SetStaticIntField(clazz, fid_dx, (jint)dx); + env->SetStaticIntField(clazz, fid_dy, (jint)dy); + env->SetStaticIntField(clazz, fid_dwheel, (jint)wheel_dz); + jbooleanArray buttons_array = (jbooleanArray)env->GetStaticObjectField(clazz, fid_buttons); + env->SetBooleanArrayRegion(buttons_array, 0, NUM_BUTTONS, button_state); + wheel_dz = 0; + unlock(); +/* if (dx != 0 || dy != 0) - printf("dx %d dy %d, lx %d ly %d\n", dx, dy, last_x, last_y); + printf("dx %d dy %d, lx %d ly %d\n", dx, dy, last_x, last_y);*/ } Index: org_lwjgl_opengl_Window.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_opengl_Window.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_opengl_Window.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- org_lwjgl_opengl_Window.cpp 7 Oct 2003 15:10:24 -0000 1.16 +++ org_lwjgl_opengl_Window.cpp 8 Oct 2003 10:05:34 -0000 1.17 @@ -77,14 +77,14 @@ lock(); miniaturized = true; unlock(); - return noErr; + return eventNotHandledErr; } static pascal OSStatus doMaximize(EventHandlerCallRef next_handler, EventRef event, void *user_data) { lock(); miniaturized = false; unlock(); - return noErr; + return eventNotHandledErr; } static pascal OSStatus doActivate(EventHandlerCallRef next_handler, EventRef event, void *user_data) { @@ -92,14 +92,14 @@ miniaturized = false; activated = true; unlock(); - return noErr; + return eventNotHandledErr; } static pascal OSStatus doDeactivate(EventHandlerCallRef next_handler, EventRef event, void *user_data) { lock(); activated = false; unlock(); - return noErr; + return eventNotHandledErr; } static pascal OSStatus doQuit(EventHandlerCallRef next_handler, EventRef event, void *user_data) { @@ -232,6 +232,10 @@ } ShowWindow(win_ref); SelectWindow(win_ref); + CGPoint p = {x, y}; + CGWarpMouseCursorPosition(p); + CGPostMouseEvent(p, FALSE, 1, TRUE); + CGPostMouseEvent(p, FALSE, 1, FALSE); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetTitle(JNIEnv * env, jclass clazz, jstring title_obj) { --- org_lwjgl_Window.cpp DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_Window.cpp |
|
From: Elias N. <eli...@us...> - 2003-10-08 07:49:49
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv7955/src/native/common Modified Files: org_lwjgl_input_Cursor.h org_lwjgl_input_Mouse.h Log Message: Index: org_lwjgl_input_Cursor.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_input_Cursor.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_input_Cursor.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_input_Cursor.h 5 Aug 2003 20:07:32 -0000 1.4 +++ org_lwjgl_input_Cursor.h 8 Oct 2003 07:49:43 -0000 1.5 @@ -8,22 +8,23 @@ extern "C" { #endif /* Inaccessible static: _00024assertionsDisabled */ +/* Inaccessible static: initialized */ /* Inaccessible static: class_00024org_00024lwjgl_00024input_00024Cursor */ /* * Class: org_lwjgl_input_Cursor * Method: nCreateCursor - * Signature: (IIIIILjava/nio/IntBuffer;ILjava/nio/IntBuffer;I)I + * Signature: (IIIIILjava/nio/IntBuffer;ILjava/nio/IntBuffer;I)J */ -JNIEXPORT jint JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor +JNIEXPORT jlong JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint, jobject, jint); /* * Class: org_lwjgl_input_Cursor * Method: nDestroyCursor - * Signature: (I)V + * Signature: (J)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Cursor_nDestroyCursor - (JNIEnv *, jclass, jint); + (JNIEnv *, jclass, jlong); #ifdef __cplusplus } Index: org_lwjgl_input_Mouse.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_input_Mouse.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_input_Mouse.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- org_lwjgl_input_Mouse.h 7 Oct 2003 13:09:59 -0000 1.8 +++ org_lwjgl_input_Mouse.h 8 Oct 2003 07:49:43 -0000 1.9 @@ -37,10 +37,10 @@ /* * Class: org_lwjgl_input_Mouse * Method: nSetNativeCursor - * Signature: (I)V + * Signature: (J)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor - (JNIEnv *, jclass, jint); + (JNIEnv *, jclass, jlong); /* * Class: org_lwjgl_input_Mouse |
|
From: Elias N. <eli...@us...> - 2003-10-08 07:46:56
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/macosx In directory sc8-pr-cvs1:/tmp/cvs-serv7564/src/native/macosx Modified Files: org_lwjgl_input_Mouse.cpp Log Message: Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- org_lwjgl_input_Mouse.cpp 7 Oct 2003 15:10:24 -0000 1.7 +++ org_lwjgl_input_Mouse.cpp 8 Oct 2003 07:46:50 -0000 1.8 @@ -46,16 +46,8 @@ #define NUM_BUTTONS 7 static unsigned char button_state[NUM_BUTTONS]; - -static pascal OSStatus doMouseDragged(EventHandlerCallRef next_handler, EventRef event, void *user_data) { -printf("Mouse dragged\n"); - return eventNotHandledErr; // allow the event to propagate -} - -static pascal OSStatus doMouseMoved(EventHandlerCallRef next_handler, EventRef event, void *user_data) { -printf("Mouse moved\n"); - return eventNotHandledErr; // allow the event to propagate -} +static int last_x; +static int last_y; static pascal OSStatus doMouseDown(EventHandlerCallRef next_handler, EventRef event, void *user_data) { printf("Mouse down\n"); @@ -69,14 +61,12 @@ static pascal OSStatus doMouseWheel(EventHandlerCallRef next_handler, EventRef event, void *user_data) { printf("Mouse wheel\n"); - return eventNotHandledErr; // allow the event to propagate + return noErr; } bool registerMouseHandler(JNIEnv* env, WindowRef win_ref) { bool error = registerHandler(env, win_ref, doMouseDown, kEventClassMouse, kEventMouseDown); error = error || registerHandler(env, win_ref, doMouseUp, kEventClassMouse, kEventMouseUp); - error = error || registerHandler(env, win_ref, doMouseMoved, kEventClassMouse, kEventMouseMoved); - error = error || registerHandler(env, win_ref, doMouseDragged, kEventClassMouse, kEventMouseDragged); error = error || registerHandler(env, win_ref, doMouseWheel, kEventClassMouse, kEventMouseWheelMoved); return !error; } @@ -95,7 +85,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nGetNativeCursorCaps(JNIEnv *env, jclass clazz) { } -JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor(JNIEnv *env, jclass clazz, jint cursor_handle) { +JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor(JNIEnv *env, jclass clazz, jlong cursor_handle) { } JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nGetMinCursorSize(JNIEnv *env, jclass clazz) { @@ -105,15 +95,20 @@ } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate(JNIEnv * env, jclass clazz) { + last_x = 0; + last_y = 0; } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy(JNIEnv * env, jclass clazz) { } JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nPoll(JNIEnv * env, jclass clazz) { - CGMouseDelta x; - CGMouseDelta y; - CGGetLastMouseDelta(&x, &y); - if (x != 0 || y != 0) - printf("delta x %d y %d\n", x, y); + Point cursor_pos; + GetMouse(&cursor_pos); + int dx = cursor_pos.v - last_x; + int dy = cursor_pos.h - last_y; + last_x += dx; + last_y += dy; + if (dx != 0 || dy != 0) + printf("dx %d dy %d, lx %d ly %d\n", dx, dy, last_x, last_y); } |
|
From: Elias N. <eli...@us...> - 2003-10-08 07:46:56
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv7564/src/native/linux Modified Files: org_lwjgl_input_Cursor.cpp org_lwjgl_input_Mouse.cpp Log Message: Index: org_lwjgl_input_Cursor.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Cursor.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Cursor.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_input_Cursor.cpp 5 Aug 2003 20:07:32 -0000 1.4 +++ org_lwjgl_input_Cursor.cpp 8 Oct 2003 07:46:50 -0000 1.5 @@ -7,7 +7,7 @@ * Method: nCreateCursor * Signature: (IIIIIII)I */ -JNIEXPORT jint JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor +JNIEXPORT jlong JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor (JNIEnv *env, jclass clazz, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) { const int *delays = NULL; @@ -39,7 +39,7 @@ * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Cursor_nDestroyCursor - (JNIEnv *env, jclass clazz, jint cursor_handle) + (JNIEnv *env, jclass clazz, jlong cursor_handle) { Cursor cursor = (Cursor)cursor_handle; XFreeCursor(getCurrentDisplay(), cursor); Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- org_lwjgl_input_Mouse.cpp 7 Oct 2003 13:09:59 -0000 1.34 +++ org_lwjgl_input_Mouse.cpp 8 Oct 2003 07:46:50 -0000 1.35 @@ -204,7 +204,7 @@ * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor - (JNIEnv *env, jclass clazz, jint cursor_handle) + (JNIEnv *env, jclass clazz, jlong cursor_handle) { if (cursor_handle != 0) { Cursor cursor = (Cursor)cursor_handle; |
|
From: Elias N. <eli...@us...> - 2003-10-08 07:46:55
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv7564/src/native/win32 Modified Files: org_lwjgl_input_Cursor.cpp org_lwjgl_input_Mouse.cpp Log Message: Index: org_lwjgl_input_Cursor.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Cursor.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Cursor.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- org_lwjgl_input_Cursor.cpp 5 Aug 2003 20:07:32 -0000 1.5 +++ org_lwjgl_input_Cursor.cpp 8 Oct 2003 07:46:50 -0000 1.6 @@ -7,7 +7,7 @@ * Method: nCreateCursor * Signature: (IIIIIIIII)I */ -JNIEXPORT jint JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor +JNIEXPORT jlong JNICALL Java_org_lwjgl_input_Cursor_nCreateCursor (JNIEnv *env, jclass clazz, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) { int *pixels = (int *)env->GetDirectBufferAddress(image_buffer) + images_offset; @@ -104,7 +104,7 @@ * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Cursor_nDestroyCursor - (JNIEnv *env, jclass clazz, jint cursor_handle) + (JNIEnv *env, jclass clazz, jlong cursor_handle) { HCURSOR cursor = (HCURSOR)cursor_handle; DestroyCursor(cursor); Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- org_lwjgl_input_Mouse.cpp 7 Oct 2003 14:28:33 -0000 1.31 +++ org_lwjgl_input_Mouse.cpp 8 Oct 2003 07:46:50 -0000 1.32 @@ -163,7 +163,7 @@ * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor - (JNIEnv *env, jclass clazz, jint cursor_handle) + (JNIEnv *env, jclass clazz, jlong cursor_handle) { if (cursor_handle != 0) { if (mDIDevice == NULL) |
|
From: Elias N. <eli...@us...> - 2003-10-08 07:46:55
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv7564/src/java/org/lwjgl/input Modified Files: Cursor.java Mouse.java Log Message: Index: Cursor.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Cursor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Cursor.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Cursor.java 16 Sep 2003 15:39:46 -0000 1.12 +++ Cursor.java 8 Oct 2003 07:46:50 -0000 1.13 @@ -56,7 +56,7 @@ /** * The native handle to the cursor */ - private final int nativeHandle; + private final long nativeHandle; /** * Constructs a new Cursor, with the given parameters. Mouse must have been created before you can create @@ -123,17 +123,17 @@ /** * Gets the native handle associated with the cursor object. */ - public int getHandle() { + public long getHandle() { return nativeHandle; } /** * Native method to create a native cursor */ - private static native int nCreateCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, int images_offset, IntBuffer delays, int delays_offset); + private static native long nCreateCursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, int images_offset, IntBuffer delays, int delays_offset); /** * Native method to destroy a native cursor */ - private static native void nDestroyCursor(int handle); + private static native void nDestroyCursor(long handle); } Index: Mouse.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Mouse.java 7 Oct 2003 13:10:17 -0000 1.27 +++ Mouse.java 8 Oct 2003 07:46:50 -0000 1.28 @@ -146,7 +146,7 @@ } /** Native method to set the native cursor */ - private static native void nSetNativeCursor(int handle) throws Exception; + private static native void nSetNativeCursor(long handle) throws Exception; /** * Gets the minimum size of a native cursor. Can only be called if |