8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eca395e + 05dcce3 commit 6681363Copy full SHA for 6681363
src/src/org/renpy/android/SDLSurfaceView.java
@@ -904,8 +904,6 @@ public boolean onTouchEvent(final MotionEvent event) {
904
int sdlAction = -1;
905
int pointerId = -1;
906
int pointerIndex = -1;
907
- int[] coords = new int[2];
908
- this.getLocationInWindow(coords);
909
910
switch ( action ) {
911
case MotionEvent.ACTION_DOWN:
@@ -955,8 +953,8 @@ public boolean onTouchEvent(final MotionEvent event) {
955
953
));
956
954
**/
957
SDLSurfaceView.nativeMouse(
958
- (int)event.getX(i) - coords[0],
959
- (int)event.getY(i) - coords[1],
+ (int)event.getX(i),
+ (int)event.getY(i),
960
sdlAction,
961
event.getPointerId(i),
962
(int)(event.getPressure(i) * 1000.0),
0 commit comments