QTouchEvent forward declaration; add comment to TouchBegin that was lost in an edit

This commit is contained in:
NeatNit 2018-10-06 22:24:09 +03:00
parent 7cb0ad3fd1
commit 718aa51b0b
2 changed files with 2 additions and 1 deletions

View file

@ -250,6 +250,7 @@ void GRenderWindow::mouseReleaseEvent(QMouseEvent* event) {
}
void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) {
// TouchBegin always has exactly one touch point, so take the .first()
const auto [x, y] = ScaleTouch(event->touchPoints().first().pos());
this->TouchPressed(x, y);
}

View file

@ -9,13 +9,13 @@
#include <mutex>
#include <QGLWidget>
#include <QThread>
#include <QTouchEvent>
#include "common/thread.h"
#include "core/core.h"
#include "core/frontend/emu_window.h"
class QKeyEvent;
class QScreen;
class QTouchEvent;
class GGLWidgetInternal;
class GMainWindow;