mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-05-24 01:44:38 -04:00
Fix wrong custom controls keycode triggered
This commit is contained in:
@@ -111,7 +111,7 @@ public class ControlsLayout extends FrameLayout
|
||||
|
||||
for (int i = 0; i < MetaKeyBean.keysByKeyCode.size(); i++) {
|
||||
MetaKeyBase key = MetaKeyBean.keysByKeyCode.valueAt(i);
|
||||
if (ctrlView.getProperties().keycode == key.keyEvent) {
|
||||
if (ctrlView.getProperties().keycode + ControlButton.getSpecialButtons().length == key.keyEvent) {
|
||||
listener.onKey(key, isDown);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user