Pressure and size for Android 1.6 touchscreen reported not

This commit is contained in:
pelya
2010-08-18 13:14:48 +03:00
parent 5e2ad1da63
commit 5b5882f9f1

View File

@@ -49,7 +49,9 @@ import android.os.Build;
if( event.getAction() == MotionEvent.ACTION_MOVE )
action = 2;
if ( action >= 0 )
DemoGLSurfaceView.nativeMouse( (int)event.getX(), (int)event.getY(), action, 0, 0, 0 );
DemoGLSurfaceView.nativeMouse( (int)event.getX(), (int)event.getY(), action, 0,
(int)(event.getPressure() * 1000.0,
(int)(event.getSize() * 1000.0) );
}
}
private static class MultiTouchInput extends DifferentTouchInput