mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
fix[TouchController]: Fixed TouchController proxy thread not being run
This commit is contained in:
parent
71a28fa5fb
commit
cd0f40f377
@ -203,8 +203,8 @@ public class MinecraftGLSurface extends View implements GrabListener, DirectGame
|
||||
CallbackBridge.sendCursorPos( e.getX(i) * LauncherPreferences.PREF_SCALE_FACTOR, e.getY(i) * LauncherPreferences.PREF_SCALE_FACTOR);
|
||||
return true; //mouse event handled successfully
|
||||
}
|
||||
if (mIngameProcessor == null || mInGUIProcessor == null) return true;
|
||||
TouchControllerUtils.processTouchEvent(e, this);
|
||||
if (mIngameProcessor == null || mInGUIProcessor == null) return true;
|
||||
return mCurrentTouchProcessor.processTouchEvent(e);
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,7 @@ public class TouchControllerUtils {
|
||||
}
|
||||
MessageTransport transport = UnixSocketTransportKt.UnixSocketTransport(socketName);
|
||||
proxyClient = new LauncherProxyClient(transport);
|
||||
proxyClient.run();
|
||||
Vibrator vibrator = ContextCompat.getSystemService(context, Vibrator.class);
|
||||
if (vibrator != null) {
|
||||
LauncherProxyClient.VibrationHandler vibrationHandler = new VibrationHandler(vibrator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user