From 5b5882f9f1211d3aa3e4ff3a5f96a2b66983de8f Mon Sep 17 00:00:00 2001 From: pelya Date: Wed, 18 Aug 2010 13:14:48 +0300 Subject: [PATCH] Pressure and size for Android 1.6 touchscreen reported not --- project/src/Video.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/src/Video.java b/project/src/Video.java index 7caa7e1c2..17163882c 100644 --- a/project/src/Video.java +++ b/project/src/Video.java @@ -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