17 #ifndef UNITY_HOMEKEYWATCHER_H
18 #define UNITY_HOMEKEYWATCHER_H
24 #include "ElapsedTimer.h"
38 class HomeKeyWatcher :
public QQuickItem
43 HomeKeyWatcher(QQuickItem *parent = 0);
48 QQuickItem *parent = 0);
50 virtual ~HomeKeyWatcher();
52 bool eventFilter(QObject *watched, QEvent *event)
override;
54 void update(QEvent *event);
56 const qint64 msecsWithoutTouches = 150;
63 void setupFilterOnWindow(QQuickWindow *window);
64 void emitActivatedIfNoTouchesAround();
67 QPointer<QQuickWindow> m_filteredWindow;
68 bool m_windowBeingTouched;
69 bool m_homeKeyPressed;
74 #endif // UNITY_HOMEKEYWATCHER_H