mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2025-10-04 21:17:07 +00:00
QTouchEvent forward declaration; add comment to TouchBegin that was lost in an edit
This commit is contained in:
parent
7cb0ad3fd1
commit
718aa51b0b
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue