mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Experiment (#9647): Prevent NaN values from getting into the UI system through TouchInput
This commit is contained in:
parent
6aca39722f
commit
7d89e5d84c
1 changed files with 4 additions and 0 deletions
|
@ -945,6 +945,10 @@ 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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue