Fixed wrong multitouch Java code
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount
|
// 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;
|
import javax.microedition.khronos.opengles.GL10;
|
||||||
|
|
||||||
@@ -72,12 +72,12 @@ import android.os.Build;
|
|||||||
if( event.getAction() == MotionEvent.ACTION_MOVE )
|
if( event.getAction() == MotionEvent.ACTION_MOVE )
|
||||||
action = 2;
|
action = 2;
|
||||||
if ( action >= 0 )
|
if ( action >= 0 )
|
||||||
DemoGLSurfaceView.nativeMouse( (int)event.getX(event.getPointerId(i)),
|
DemoGLSurfaceView.nativeMouse( (int)event.getX(i),
|
||||||
(int)event.getY(event.getPointerId(i)),
|
(int)event.getY(i),
|
||||||
action,
|
action,
|
||||||
event.getPointerId(i),
|
event.getPointerId(i),
|
||||||
(int)(event.getPressure(event.getPointerId(i)) * 1000.0),
|
(int)(event.getPressure(i) * 1000.0),
|
||||||
(int)(event.getSize(event.getPointerId(i)) * 1000.0));
|
(int)(event.getSize(i) * 1000.0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user