Fix for nasty bug in multitouch events code

This commit is contained in:
pelya
2012-06-12 14:06:24 +03:00
parent 88e9606d95
commit 90211ac16e
3 changed files with 19 additions and 7 deletions

View File

@@ -437,6 +437,7 @@ public class MainActivity extends Activity {
@Override
public boolean dispatchTouchEvent(final MotionEvent ev)
{
//System.out.println("dispatchTouchEvent: " + ev.getAction() + " coords " + ev.getX() + ":" + ev.getY() );
if(_screenKeyboard != null)
_screenKeyboard.dispatchTouchEvent(ev);
else
@@ -454,6 +455,7 @@ public class MainActivity extends Activity {
@Override
public boolean dispatchGenericMotionEvent (MotionEvent ev)
{
//System.out.println("dispatchGenericMotionEvent: " + ev.getAction() + " coords " + ev.getX() + ":" + ev.getY() );
// This code fails to run for Android 1.6, so there will be no generic motion event for Andorid screen keyboard
/*
if(_screenKeyboard != null)