Skip to content

Commit cd0f40f

Browse files
committed
fix[TouchController]: Fixed TouchController proxy thread not being run
1 parent 71a28fa commit cd0f40f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ public boolean onTouchEvent(MotionEvent e) {
203203
CallbackBridge.sendCursorPos( e.getX(i) * LauncherPreferences.PREF_SCALE_FACTOR, e.getY(i) * LauncherPreferences.PREF_SCALE_FACTOR);
204204
return true; //mouse event handled successfully
205205
}
206-
if (mIngameProcessor == null || mInGUIProcessor == null) return true;
207206
TouchControllerUtils.processTouchEvent(e, this);
207+
if (mIngameProcessor == null || mInGUIProcessor == null) return true;
208208
return mCurrentTouchProcessor.processTouchEvent(e);
209209
}
210210

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/TouchControllerUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public static void initialize(Context context) {
104104
}
105105
MessageTransport transport = UnixSocketTransportKt.UnixSocketTransport(socketName);
106106
proxyClient = new LauncherProxyClient(transport);
107+
proxyClient.run();
107108
Vibrator vibrator = ContextCompat.getSystemService(context, Vibrator.class);
108109
if (vibrator != null) {
109110
LauncherProxyClient.VibrationHandler vibrationHandler = new VibrationHandler(vibrator);

0 commit comments

Comments
 (0)