Fixed nasty bug in "touch near cursor to click" mouse emulation mode,

also validated on-screen keyboard with 10-point touchscreen, no issues found.
This commit is contained in:
pelya
2011-08-11 19:36:06 +03:00
parent 4d7b1c2cb6
commit f3193e8fd2
6 changed files with 53 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
/*
/* OF
Simple DirectMedia Layer
Java source code (C) 2009-2011 Sergii Pylypenko
@@ -391,9 +391,14 @@ public class MainActivity extends Activity {
}
@Override
public boolean dispatchGenericMotionEvent (final MotionEvent ev)
public boolean dispatchGenericMotionEvent (MotionEvent ev)
{
return dispatchTouchEvent(ev);
if(_screenKeyboard != null)
_screenKeyboard.dispatchGenericMotionEvent(ev);
else
if(mGLView != null)
mGLView.onGenericMotionEvent(ev);
return true;
}
@Override