Fix crash when receiving abs input events prior to the display touchport

This commit is contained in:
Cameron Gutman
2024-04-11 23:35:08 -05:00
parent f87bc86b4a
commit a4d9ee3fa4
2 changed files with 30 additions and 12 deletions

View File

@@ -32,6 +32,11 @@ namespace input {
float client_offsetX, client_offsetY;
float scalar_inv;
explicit
operator bool() const {
return width != 0 && height != 0 && env_width != 0 && env_height != 0;
}
};
std::pair<float, float>