From 2c6c933575d023ecfb481baf3c448ad7daf5aabb Mon Sep 17 00:00:00 2001 From: pelya Date: Fri, 20 Aug 2010 13:06:28 +0300 Subject: [PATCH] Fixed wrong multitouch Java code --- project/src/Video.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/project/src/Video.java b/project/src/Video.java index 66c7fd117..9d4608308 100644 --- a/project/src/Video.java +++ b/project/src/Video.java @@ -1,5 +1,5 @@ // This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount -package com.googlecode.opentyrian; +package com.sourceforge.sc2; import javax.microedition.khronos.opengles.GL10; @@ -72,12 +72,12 @@ import android.os.Build; if( event.getAction() == MotionEvent.ACTION_MOVE ) action = 2; if ( action >= 0 ) - DemoGLSurfaceView.nativeMouse( (int)event.getX(event.getPointerId(i)), - (int)event.getY(event.getPointerId(i)), + DemoGLSurfaceView.nativeMouse( (int)event.getX(i), + (int)event.getY(i), action, event.getPointerId(i), - (int)(event.getPressure(event.getPointerId(i)) * 1000.0), - (int)(event.getSize(event.getPointerId(i)) * 1000.0)); + (int)(event.getPressure(i) * 1000.0), + (int)(event.getSize(i) * 1000.0)); } } }