Commit 6a4fa30e authored by Alexandre Julliard's avatar Alexandre Julliard

wineandroid: Force non-zero state on ACTION_BUTTON_RELEASE to avoid duplicate events.

parent e7202687
......@@ -293,6 +293,9 @@ jboolean motion_event( JNIEnv *env, jobject obj, jint win, jint action, jint x,
mask == AMOTION_EVENT_ACTION_BUTTON_RELEASE ))
return JNI_FALSE;
/* make sure a subsequent AMOTION_EVENT_ACTION_UP is not treated as a touch event */
if (mask == AMOTION_EVENT_ACTION_BUTTON_RELEASE) state |= 0x80000000;
prev_state = InterlockedExchange( &button_state, state );
data.type = MOTION_EVENT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment