mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 17:15:40 -04:00
Fix improper coordinate precision on mouse clicks
This commit is contained in:
parent
8993fb9506
commit
a2cd6c8f7d
@ -20,8 +20,8 @@ public class CallbackBridge {
|
|||||||
|
|
||||||
// volatile private static boolean isGrabbing = false;
|
// volatile private static boolean isGrabbing = false;
|
||||||
public static class PusherRunnable implements Runnable {
|
public static class PusherRunnable implements Runnable {
|
||||||
int button; int x; int y;
|
int button; float x; float y;
|
||||||
public PusherRunnable(int button, int x, int y) {
|
public PusherRunnable(int button, float x, float y) {
|
||||||
this.button = button;
|
this.button = button;
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
@ -33,7 +33,7 @@ public class CallbackBridge {
|
|||||||
putMouseEventWithCoords(button, false, x, y);
|
putMouseEventWithCoords(button, false, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void putMouseEventWithCoords(int button, int x, int y /* , int dz, long nanos */) {
|
public static void putMouseEventWithCoords(int button, float x, float y /* , int dz, long nanos */) {
|
||||||
new Thread(new PusherRunnable(button,x,y)).run();
|
new Thread(new PusherRunnable(button,x,y)).run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user