Microtouch touch points now work properly in fullscreen/maximized with scaling changes

This commit is contained in:
Cacodemon345
2025-04-12 14:34:36 +06:00
parent f9562ecde0
commit a0f0c42f4a
3 changed files with 86 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
#include <QEvent>
#include <QImage>
#include <QRect>
#include <QRectF>
#include <QWidget>
#include <atomic>
@@ -40,6 +41,7 @@ public:
virtual bool rendererTakeScreenshot() { return false; }
int r_monitor_index = 0;
QRectF destinationF = QRectF(0, 0, 1, 1); /* normalized to 0.0-1.0 range. */
protected:
bool eventDelegate(QEvent *event, bool &result);