mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 16:00:30 +02:00
Android: Remove return value from touch event functions
This commit is contained in:
1 parent
e2a9abaf5c
commit
fdfc4cbe40
8 files changed
+23
-26
No files matched your search
+10
-10
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user