mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
[WIP] Ingame custom controls
This commit is contained in:
parent
aa426268ee
commit
3911e8ef11
4 changed files with 21 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ import java.lang.reflect.*;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.nio.FloatBuffer;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.customcontrols.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import net.kdt.pojavlaunch.value.*;
|
||||
|
|
@ -986,9 +987,12 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
}
|
||||
|
||||
private void openCustomControls() {
|
||||
if (this instanceof MainActivity) {
|
||||
((MainActivity) this).mControlLayout.loadLayout((CustomControls) null);
|
||||
}
|
||||
Intent intent = new Intent(this, CustomControlsActivity.class);
|
||||
intent.putExtra("fromMainActivity", true);
|
||||
startActivity(intent);
|
||||
startActivityForResult(intent, 1);
|
||||
}
|
||||
|
||||
private void openLogOutput() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue