mirror of
https://github.com/minetest/minetest.git
synced 2024-11-14 03:33:44 +01:00
19 lines
1.1 KiB
Diff
19 lines
1.1 KiB
Diff
|
diff --git a/android/app/src/main/java/org/libsdl/app/SDLActivity.java b/android/app/src/main/java/org/libsdl/app/SDLActivity.java
|
||
|
index fd5a056e3..83e3cf657 100644
|
||
|
--- a/android/app/src/main/java/org/libsdl/app/SDLActivity.java
|
||
|
+++ b/android/app/src/main/java/org/libsdl/app/SDLActivity.java
|
||
|
@@ -1345,7 +1345,12 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
||
|
}
|
||
|
}
|
||
|
|
||
|
- if ((source & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE) {
|
||
|
+ if ((source & InputDevice.SOURCE_MOUSE) == InputDevice.SOURCE_MOUSE ||
|
||
|
+ /*
|
||
|
+ * CUSTOM ADDITION FOR MINETEST
|
||
|
+ * should be upstreamed
|
||
|
+ */
|
||
|
+ (source & InputDevice.SOURCE_MOUSE_RELATIVE) == InputDevice.SOURCE_MOUSE_RELATIVE) {
|
||
|
// on some devices key events are sent for mouse BUTTON_BACK/FORWARD presses
|
||
|
// they are ignored here because sending them as mouse input to SDL is messy
|
||
|
if ((keyCode == KeyEvent.KEYCODE_BACK) || (keyCode == KeyEvent.KEYCODE_FORWARD)) {
|