mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
Un-reserve Y position
This commit is contained in:
parent
6a9b99953b
commit
71fcfa4ed1
1 changed files with 9 additions and 2 deletions
|
|
@ -355,7 +355,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||||
|
|
||||||
if (gestureDetector.onTouchEvent(event)) {
|
if (gestureDetector.onTouchEvent(event)) {
|
||||||
|
|
||||||
LWJGLInputSender.sendCursorPos((int) mouseX, (int) (LWJGLInputSender.windowHeight - mouseY));
|
LWJGLInputSender.sendCursorPos((int) mouseX, (int) mouseY);
|
||||||
LWJGLInputSender.sendMouseKeycode(rightOverride ? LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT : LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_LEFT);
|
LWJGLInputSender.sendMouseKeycode(rightOverride ? LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT : LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_LEFT);
|
||||||
if (!rightOverride) {
|
if (!rightOverride) {
|
||||||
LWJGLInputSender.mouseLeft = true;
|
LWJGLInputSender.mouseLeft = true;
|
||||||
|
|
@ -386,13 +386,17 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||||
} finally {
|
} finally {
|
||||||
placeMouseAt(mouseX, mouseY);
|
placeMouseAt(mouseX, mouseY);
|
||||||
|
|
||||||
LWJGLInputSender.sendCursorPos((int) mouseX, LWJGLInputSender.windowHeight - (int) mouseY);
|
LWJGLInputSender.sendCursorPos((int) mouseX, (int) mouseY);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prevX = x;
|
prevX = x;
|
||||||
prevY = y;
|
prevY = y;
|
||||||
|
|
||||||
|
debugText.setText(LWJGLInputSender.DEBUG_STRING.toString());
|
||||||
|
LWJGLInputSender.DEBUG_STRING.setLength(0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -589,6 +593,9 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugText.setText(LWJGLInputSender.DEBUG_STRING.toString());
|
||||||
|
LWJGLInputSender.DEBUG_STRING.setLength(0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
// If onClick fail with false, change back to true
|
// If onClick fail with false, change back to true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue