Merge pull request #32250 from lawnjelly/android-keyboard2

Fix Android keyboard crash with left cursor
This commit is contained in:
Rémi Verschelde 2019-09-23 22:09:09 +02:00 committed by GitHub
commit ce384f885c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,6 @@ public class GodotInputHandler implements InputDeviceListener {
GodotLib.joybutton(device_id, button, false);
}
});
return true;
}
} else {
final int chr = event.getUnicodeChar(0);
@ -108,7 +107,7 @@ public class GodotInputHandler implements InputDeviceListener {
});
};
return false;
return true;
}
public boolean onKeyDown(final int keyCode, KeyEvent event) {
@ -142,7 +141,6 @@ public class GodotInputHandler implements InputDeviceListener {
GodotLib.joybutton(device_id, button, true);
}
});
return true;
}
} else {
final int chr = event.getUnicodeChar(0);
@ -154,7 +152,7 @@ public class GodotInputHandler implements InputDeviceListener {
});
};
return false;
return true;
}
public boolean onGenericMotionEvent(MotionEvent event) {