mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Fix[physical-controls]: Send mouse position more often
This commit is contained in:
parent
6e194302f5
commit
dc7e9856a5
@ -446,9 +446,10 @@ public class MinecraftGLSurface extends View implements GrabListener {
|
|||||||
CallbackBridge.mouseX += (e.getX()* mScaleFactor);
|
CallbackBridge.mouseX += (e.getX()* mScaleFactor);
|
||||||
CallbackBridge.mouseY += (e.getY()* mScaleFactor);
|
CallbackBridge.mouseY += (e.getY()* mScaleFactor);
|
||||||
|
|
||||||
|
CallbackBridge.sendCursorPos(CallbackBridge.mouseX, CallbackBridge.mouseY);
|
||||||
|
|
||||||
switch (e.getActionMasked()) {
|
switch (e.getActionMasked()) {
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
CallbackBridge.sendCursorPos(CallbackBridge.mouseX, CallbackBridge.mouseY);
|
|
||||||
return true;
|
return true;
|
||||||
case MotionEvent.ACTION_BUTTON_PRESS:
|
case MotionEvent.ACTION_BUTTON_PRESS:
|
||||||
return sendMouseButtonUnconverted(e.getActionButton(), true);
|
return sendMouseButtonUnconverted(e.getActionButton(), true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user