mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
[Mouse capture] Fix Y pos inverted
TODO fix right mouse
This commit is contained in:
parent
5162cbf6cc
commit
bbbded5977
@ -567,7 +567,7 @@ public class BaseMainActivity extends LoggableActivity {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onCapturedPointer (View view, MotionEvent e) {
|
public boolean onCapturedPointer (View view, MotionEvent e) {
|
||||||
x += ((int) e.getX()) / scaleFactor;
|
x += ((int) e.getX()) / scaleFactor;
|
||||||
y -= ((int) e.getY()) / scaleFactor;
|
y += ((int) e.getY()) / scaleFactor;
|
||||||
|
|
||||||
if (debugText.getVisibility() == View.VISIBLE && !debugErrored) {
|
if (debugText.getVisibility() == View.VISIBLE && !debugErrored) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user