mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Fix mouse buttons not working
This commit is contained in:
parent
5cf46203c2
commit
1619616674
@ -18,9 +18,15 @@ public class CustomCtrlMainActivity extends BaseMainActivity implements OnClickL
|
|||||||
initLayout(R.layout.main_with_customctrl);
|
initLayout(R.layout.main_with_customctrl);
|
||||||
|
|
||||||
ControlData[] specialButtons = ControlData.getSpecialButtons();
|
ControlData[] specialButtons = ControlData.getSpecialButtons();
|
||||||
for (ControlData specialButton : specialButtons) {
|
specialButtons[0].specialButtonListener
|
||||||
specialButton.specialButtonListener = this;
|
= specialButtons[1].specialButtonListener
|
||||||
}
|
= specialButtons[4].specialButtonListener
|
||||||
|
= ((View.OnClickListener) this);
|
||||||
|
|
||||||
|
specialButtons[2].specialButtonListener
|
||||||
|
= specialButtons[3].specialButtonListener
|
||||||
|
= specialButtons[5].specialButtonListener
|
||||||
|
= ((View.OnTouchListener) this);
|
||||||
|
|
||||||
mControlLayout = findViewById(R.id.main_control_layout);
|
mControlLayout = findViewById(R.id.main_control_layout);
|
||||||
mControl = new CustomControls();
|
mControl = new CustomControls();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user