mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -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;
|
||||
public static class PusherRunnable implements Runnable {
|
||||
int button; int x; int y;
|
||||
public PusherRunnable(int button, int x, int y) {
|
||||
int button; float x; float y;
|
||||
public PusherRunnable(int button, float x, float y) {
|
||||
this.button = button;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
@ -33,7 +33,7 @@ public class CallbackBridge {
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user