Android: Remove return value from touch event functions

This commit is contained in:
Henrik Rydgård committed 2023-01-10 10:12:33 +01:00
1 parent e2a9abaf5c
commit fdfc4cbe40
8 files changed
+23 -26

No files matched your search

+10 -10
View File
@@ -1315,17 +1315,17 @@ bool NativeIsAtTopLevel() {
}
}
bool NativeTouch(const TouchInput &touch) {
if (screenManager) {
// Brute force prevent NaNs from getting into the UI system
if (my_isnan(touch.x) || my_isnan(touch.y)) {
return false;
}
screenManager->touch(touch);
return true;
} else {
return false;
void NativeTouch(const TouchInput &touch) {
if (!screenManager) {
return;
}
// Brute force prevent NaNs from getting into the UI system.
// Don't think this is actually necessary in practice.
if (my_isnan(touch.x) || my_isnan(touch.y)) {
return;
}
screenManager->touch(touch);
}
bool NativeKey(const KeyInput &key) {