Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_inputeventfilter.h
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | public: | 33 | public: | ||
34 | DpmsInputEventFilter(DrmBackend *backend); | 34 | DpmsInputEventFilter(DrmBackend *backend); | ||
35 | ~DpmsInputEventFilter() override; | 35 | ~DpmsInputEventFilter() override; | ||
36 | 36 | | |||
37 | bool pointerEvent(QMouseEvent *event, quint32 nativeButton) override; | 37 | bool pointerEvent(QMouseEvent *event, quint32 nativeButton) override; | ||
38 | bool wheelEvent(QWheelEvent *event) override; | 38 | bool wheelEvent(QWheelEvent *event) override; | ||
39 | bool keyEvent(QKeyEvent *event) override; | 39 | bool keyEvent(QKeyEvent *event) override; | ||
40 | bool touchDown(quint32 id, const QPointF &pos, quint32 time) override; | 40 | bool touchDown(qint32 id, const QPointF &pos, quint32 time) override; | ||
41 | bool touchMotion(quint32 id, const QPointF &pos, quint32 time) override; | 41 | bool touchMotion(qint32 id, const QPointF &pos, quint32 time) override; | ||
42 | bool touchUp(quint32 id, quint32 time) override; | 42 | bool touchUp(qint32 id, quint32 time) override; | ||
43 | 43 | | |||
44 | private: | 44 | private: | ||
45 | void notify(); | 45 | void notify(); | ||
46 | DrmBackend *m_backend; | 46 | DrmBackend *m_backend; | ||
47 | QElapsedTimer m_doubleTapTimer; | 47 | QElapsedTimer m_doubleTapTimer; | ||
48 | QVector<qint32> m_touchPoints; | 48 | QVector<qint32> m_touchPoints; | ||
49 | bool m_secondTap = false; | 49 | bool m_secondTap = false; | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | 54 | | |||
55 | #endif | 55 | #endif | ||
56 | 56 | |