mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
New option, start with virtual mouse on (#2399)
This commit is contained in:
parent
5d61619243
commit
2867ef3ad2
4 changed files with 15 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ package net.kdt.pojavlaunch;
|
|||
|
||||
import static net.kdt.pojavlaunch.Architecture.ARCH_X86;
|
||||
import static net.kdt.pojavlaunch.Tools.currentDisplayMetrics;
|
||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_VIRTUAL_MOUSE_START;
|
||||
|
||||
import static org.lwjgl.glfw.CallbackBridge.sendKeyPress;
|
||||
import static org.lwjgl.glfw.CallbackBridge.windowHeight;
|
||||
|
|
@ -127,6 +128,10 @@ public class BaseMainActivity extends BaseActivity {
|
|||
|
||||
minecraftGLView.setSurfaceReadyListener(() -> {
|
||||
try {
|
||||
// Setup virtual mouse right before launching
|
||||
if (PREF_VIRTUAL_MOUSE_START)
|
||||
touchpad.switchState();
|
||||
|
||||
runCraft();
|
||||
}catch (Throwable e){
|
||||
Tools.showError(getApplicationContext(), e, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue