mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -04:00
Workaround[controls]: joystick blocking button in game
This commit is contained in:
parent
5d010fcd33
commit
8f8623a2e8
@ -99,6 +99,12 @@ public class ControlLayout extends FrameLayout {
|
||||
if (controlLayout == null) return;
|
||||
|
||||
mLayout = controlLayout;
|
||||
|
||||
|
||||
// Joystick(s) first, to workaround the touch dispatch
|
||||
for(ControlJoystickData joystick : mLayout.mJoystickDataList){
|
||||
addJoystickView(joystick);
|
||||
}
|
||||
|
||||
//CONTROL BUTTON
|
||||
for (ControlData button : controlLayout.mControlDataList) {
|
||||
@ -111,12 +117,6 @@ public class ControlLayout extends FrameLayout {
|
||||
if(mModifiable) drawer.areButtonsVisible = true;
|
||||
}
|
||||
|
||||
// Joystick(s)
|
||||
for(ControlJoystickData joystick : mLayout.mJoystickDataList){
|
||||
addJoystickView(joystick);
|
||||
}
|
||||
|
||||
|
||||
mLayout.scaledAt = LauncherPreferences.PREF_BUTTONSIZE;
|
||||
|
||||
setModified(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user