|
From: <eli...@us...> - 2006-05-30 08:48:24
|
Revision: 2345 Author: elias_naur Date: 2006-05-30 01:48:16 -0700 (Tue, 30 May 2006) ViewCVS: http://svn.sourceforge.net/java-game-lib/?rev=2345&view=rev Log Message: ----------- Win32: Track directinput mouse buttons in the windows message state array. This should avoid some problems when switching from grabbed to non-grabbed Modified Paths: -------------- trunk/LWJGL/src/native/win32/org_lwjgl_input_Mouse.c Modified: trunk/LWJGL/src/native/win32/org_lwjgl_input_Mouse.c =================================================================== --- trunk/LWJGL/src/native/win32/org_lwjgl_input_Mouse.c 2006-05-29 19:03:02 UTC (rev 2344) +++ trunk/LWJGL/src/native/win32/org_lwjgl_input_Mouse.c 2006-05-30 08:48:16 UTC (rev 2345) @@ -506,6 +506,9 @@ } for (j = 0; j < num_buttons; j++) { buttons_buffer[j] = diMouseState.rgbButtons[j] != 0 ? JNI_TRUE : JNI_FALSE; + // track the button state in the windows message buffer state array + // to get accurate button information when releasing a grab + win32_message_button_states[j] = buttons_buffer[j]; } } else { coords[2] = accum_dwheel; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |