Changeset View
Changeset View
Standalone View
Standalone View
libinput/connection.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 69 | bool hasAlphaNumericKeyboard() const { | |||
---|---|---|---|---|---|
70 | return m_alphaNumericKeyboard > 0; | 70 | return m_alphaNumericKeyboard > 0; | ||
71 | } | 71 | } | ||
72 | bool hasTouch() const { | 72 | bool hasTouch() const { | ||
73 | return m_touch > 0; | 73 | return m_touch > 0; | ||
74 | } | 74 | } | ||
75 | bool hasPointer() const { | 75 | bool hasPointer() const { | ||
76 | return m_pointer > 0; | 76 | return m_pointer > 0; | ||
77 | } | 77 | } | ||
78 | bool hasTabletModeSwitch() const { | ||||
79 | return m_tabletModeSwitch > 0; | ||||
80 | } | ||||
78 | 81 | | |||
79 | bool isSuspended() const; | 82 | bool isSuspended() const; | ||
80 | 83 | | |||
81 | void deactivate(); | 84 | void deactivate(); | ||
82 | 85 | | |||
83 | void processEvents(); | 86 | void processEvents(); | ||
84 | 87 | | |||
85 | void toggleTouchpads(); | 88 | void toggleTouchpads(); | ||
Show All 20 Lines | 102 | Q_SIGNALS: | |||
106 | void touchCanceled(KWin::LibInput::Device *device); | 109 | void touchCanceled(KWin::LibInput::Device *device); | ||
107 | void touchDown(qint32 id, const QPointF &absolutePos, quint32 time, KWin::LibInput::Device *device); | 110 | void touchDown(qint32 id, const QPointF &absolutePos, quint32 time, KWin::LibInput::Device *device); | ||
108 | void touchUp(qint32 id, quint32 time, KWin::LibInput::Device *device); | 111 | void touchUp(qint32 id, quint32 time, KWin::LibInput::Device *device); | ||
109 | void touchMotion(qint32 id, const QPointF &absolutePos, quint32 time, KWin::LibInput::Device *device); | 112 | void touchMotion(qint32 id, const QPointF &absolutePos, quint32 time, KWin::LibInput::Device *device); | ||
110 | void hasKeyboardChanged(bool); | 113 | void hasKeyboardChanged(bool); | ||
111 | void hasAlphaNumericKeyboardChanged(bool); | 114 | void hasAlphaNumericKeyboardChanged(bool); | ||
112 | void hasPointerChanged(bool); | 115 | void hasPointerChanged(bool); | ||
113 | void hasTouchChanged(bool); | 116 | void hasTouchChanged(bool); | ||
117 | void hasTabletModeSwitchChanged(bool); | ||||
114 | void deviceAdded(KWin::LibInput::Device *); | 118 | void deviceAdded(KWin::LibInput::Device *); | ||
115 | void deviceRemoved(KWin::LibInput::Device *); | 119 | void deviceRemoved(KWin::LibInput::Device *); | ||
116 | void deviceAddedSysName(QString); | 120 | void deviceAddedSysName(QString); | ||
117 | void deviceRemovedSysName(QString); | 121 | void deviceRemovedSysName(QString); | ||
118 | void swipeGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device); | 122 | void swipeGestureBegin(int fingerCount, quint32 time, KWin::LibInput::Device *device); | ||
119 | void swipeGestureUpdate(const QSizeF &delta, quint32 time, KWin::LibInput::Device *device); | 123 | void swipeGestureUpdate(const QSizeF &delta, quint32 time, KWin::LibInput::Device *device); | ||
120 | void swipeGestureEnd(quint32 time, KWin::LibInput::Device *device); | 124 | void swipeGestureEnd(quint32 time, KWin::LibInput::Device *device); | ||
121 | void swipeGestureCancelled(quint32 time, KWin::LibInput::Device *device); | 125 | void swipeGestureCancelled(quint32 time, KWin::LibInput::Device *device); | ||
Show All 17 Lines | 139 | private: | |||
139 | void applyScreenToDevice(Device *device); | 143 | void applyScreenToDevice(Device *device); | ||
140 | Context *m_input; | 144 | Context *m_input; | ||
141 | QSocketNotifier *m_notifier; | 145 | QSocketNotifier *m_notifier; | ||
142 | QSize m_size; | 146 | QSize m_size; | ||
143 | int m_keyboard = 0; | 147 | int m_keyboard = 0; | ||
144 | int m_alphaNumericKeyboard = 0; | 148 | int m_alphaNumericKeyboard = 0; | ||
145 | int m_pointer = 0; | 149 | int m_pointer = 0; | ||
146 | int m_touch = 0; | 150 | int m_touch = 0; | ||
151 | int m_tabletModeSwitch = 0; | ||||
147 | bool m_keyboardBeforeSuspend = false; | 152 | bool m_keyboardBeforeSuspend = false; | ||
148 | bool m_alphaNumericKeyboardBeforeSuspend = false; | 153 | bool m_alphaNumericKeyboardBeforeSuspend = false; | ||
149 | bool m_pointerBeforeSuspend = false; | 154 | bool m_pointerBeforeSuspend = false; | ||
150 | bool m_touchBeforeSuspend = false; | 155 | bool m_touchBeforeSuspend = false; | ||
156 | bool m_tabletModeSwitchBeforeSuspend = false; | ||||
151 | QMutex m_mutex; | 157 | QMutex m_mutex; | ||
152 | QVector<Event*> m_eventQueue; | 158 | QVector<Event*> m_eventQueue; | ||
153 | bool wasSuspended = false; | 159 | bool wasSuspended = false; | ||
154 | QVector<Device*> m_devices; | 160 | QVector<Device*> m_devices; | ||
155 | KSharedConfigPtr m_config; | 161 | KSharedConfigPtr m_config; | ||
156 | bool m_touchpadsEnabled = true; | 162 | bool m_touchpadsEnabled = true; | ||
157 | Xkb::LEDs m_leds; | 163 | Xkb::LEDs m_leds; | ||
158 | 164 | | |||
159 | KWIN_SINGLETON(Connection) | 165 | KWIN_SINGLETON(Connection) | ||
160 | static QPointer<QThread> s_thread; | 166 | static QPointer<QThread> s_thread; | ||
161 | }; | 167 | }; | ||
162 | 168 | | |||
163 | } | 169 | } | ||
164 | } | 170 | } | ||
165 | 171 | | |||
166 | #endif | 172 | #endif |