mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-20 09:37:07 -04:00
Try to fix: Mouse right button, Hotbar selection
This commit is contained in:
@@ -170,8 +170,8 @@ public class AndroidLWJGLKeycode {
|
||||
for (Map.Entry<Integer, Integer> perKey : androidToLwjglMap.entrySet()) {
|
||||
if (i == 1 && (keyEvent.getSource() == InputDevice.SOURCE_MOUSE)) {
|
||||
// Right mouse detection
|
||||
mainActivity.sendMouseButton(1, true);
|
||||
mainActivity.sendMouseButton(1, false);
|
||||
mainActivity.sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT, true);
|
||||
mainActivity.sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_RIGHT, false);
|
||||
} else if (perKey.getKey() == i) {
|
||||
mainActivity.sendKeyPress(perKey.getValue(), keyEvent.getModifiers(), isDown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user