Changeset View
Standalone View
input.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | class InputEventFilter; | 46 | class InputEventFilter; | ||
47 | class InputEventSpy; | 47 | class InputEventSpy; | ||
48 | class KeyboardInputRedirection; | 48 | class KeyboardInputRedirection; | ||
49 | class PointerInputRedirection; | 49 | class PointerInputRedirection; | ||
50 | class TabletInputRedirection; | 50 | class TabletInputRedirection; | ||
51 | class TouchInputRedirection; | 51 | class TouchInputRedirection; | ||
52 | class WindowSelectorFilter; | 52 | class WindowSelectorFilter; | ||
53 | class SwitchEvent; | 53 | class SwitchEvent; | ||
54 | class TabletEvent; | ||||
55 | class TabletInputFilter; | ||||
54 | 56 | | |||
55 | namespace Decoration | 57 | namespace Decoration | ||
56 | { | 58 | { | ||
57 | class DecoratedClientImpl; | 59 | class DecoratedClientImpl; | ||
58 | } | 60 | } | ||
59 | 61 | | |||
60 | namespace LibInput | 62 | namespace LibInput | ||
61 | { | 63 | { | ||
Show All 33 Lines | 95 | enum KeyboardKeyState { | |||
95 | KeyboardKeyPressed, | 97 | KeyboardKeyPressed, | ||
96 | KeyboardKeyAutoRepeat | 98 | KeyboardKeyAutoRepeat | ||
97 | }; | 99 | }; | ||
98 | enum TabletEventType { | 100 | enum TabletEventType { | ||
99 | Axis, | 101 | Axis, | ||
100 | Proximity, | 102 | Proximity, | ||
101 | Tip | 103 | Tip | ||
102 | }; | 104 | }; | ||
105 | enum TabletToolType { | ||||
106 | Pen, | ||||
107 | Eraser, | ||||
108 | Brush, | ||||
109 | Pencil, | ||||
110 | Airbrush, | ||||
111 | Finger, | ||||
112 | Mouse, | ||||
113 | Lens, | ||||
114 | Totem, | ||||
115 | }; | ||||
116 | enum Capability { | ||||
117 | Tilt, | ||||
118 | Pressure, | ||||
119 | Distance, | ||||
120 | Rotation, | ||||
121 | Slider, | ||||
122 | Wheel, | ||||
123 | }; | ||||
124 | | ||||
103 | ~InputRedirection() override; | 125 | ~InputRedirection() override; | ||
104 | void init(); | 126 | void init(); | ||
105 | 127 | | |||
106 | /** | 128 | /** | ||
107 | * @return const QPointF& The current global pointer position | 129 | * @return const QPointF& The current global pointer position | ||
108 | */ | 130 | */ | ||
109 | QPointF globalPointer() const; | 131 | QPointF globalPointer() const; | ||
110 | Qt::MouseButtons qtButtonStates() const; | 132 | Qt::MouseButtons qtButtonStates() const; | ||
▲ Show 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | 310 | private: | |||
292 | void setupWorkspace(); | 314 | void setupWorkspace(); | ||
293 | void reconfigure(); | 315 | void reconfigure(); | ||
294 | void setupInputFilters(); | 316 | void setupInputFilters(); | ||
295 | void installInputEventFilter(InputEventFilter *filter); | 317 | void installInputEventFilter(InputEventFilter *filter); | ||
296 | KeyboardInputRedirection *m_keyboard; | 318 | KeyboardInputRedirection *m_keyboard; | ||
297 | PointerInputRedirection *m_pointer; | 319 | PointerInputRedirection *m_pointer; | ||
298 | TabletInputRedirection *m_tablet; | 320 | TabletInputRedirection *m_tablet; | ||
299 | TouchInputRedirection *m_touch; | 321 | TouchInputRedirection *m_touch; | ||
322 | TabletInputFilter *m_tabletSupport = nullptr; | ||||
300 | 323 | | |||
301 | GlobalShortcutsManager *m_shortcuts; | 324 | GlobalShortcutsManager *m_shortcuts; | ||
302 | 325 | | |||
303 | LibInput::Connection *m_libInput = nullptr; | 326 | LibInput::Connection *m_libInput = nullptr; | ||
304 | 327 | | |||
305 | WindowSelectorFilter *m_windowSelector = nullptr; | 328 | WindowSelectorFilter *m_windowSelector = nullptr; | ||
306 | 329 | | |||
307 | QVector<InputEventFilter*> m_filters; | 330 | QVector<InputEventFilter*> m_filters; | ||
308 | QVector<InputEventSpy*> m_spies; | 331 | QVector<InputEventSpy*> m_spies; | ||
309 | 332 | | |||
310 | KWIN_SINGLETON(InputRedirection) | 333 | KWIN_SINGLETON(InputRedirection) | ||
Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it. Lint: unknownMacro: There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a… | |||||
311 | friend InputRedirection *input(); | 334 | friend InputRedirection *input(); | ||
312 | friend class DecorationEventFilter; | 335 | friend class DecorationEventFilter; | ||
313 | friend class InternalWindowEventFilter; | 336 | friend class InternalWindowEventFilter; | ||
314 | friend class ForwardInputFilter; | 337 | friend class ForwardInputFilter; | ||
315 | }; | 338 | }; | ||
316 | 339 | | |||
317 | /** | 340 | /** | ||
318 | * Base class for filtering input events inside InputRedirection. | 341 | * Base class for filtering input events inside InputRedirection. | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 361 | public: | |||
377 | 400 | | |||
378 | virtual bool swipeGestureBegin(int fingerCount, quint32 time); | 401 | virtual bool swipeGestureBegin(int fingerCount, quint32 time); | ||
379 | virtual bool swipeGestureUpdate(const QSizeF &delta, quint32 time); | 402 | virtual bool swipeGestureUpdate(const QSizeF &delta, quint32 time); | ||
380 | virtual bool swipeGestureEnd(quint32 time); | 403 | virtual bool swipeGestureEnd(quint32 time); | ||
381 | virtual bool swipeGestureCancelled(quint32 time); | 404 | virtual bool swipeGestureCancelled(quint32 time); | ||
382 | 405 | | |||
383 | virtual bool switchEvent(SwitchEvent *event); | 406 | virtual bool switchEvent(SwitchEvent *event); | ||
384 | 407 | | |||
385 | virtual bool tabletToolEvent(QTabletEvent *event); | 408 | virtual bool tabletToolEvent(TabletEvent *event); | ||
386 | virtual bool tabletToolButtonEvent(const QSet<uint> &buttons); | 409 | virtual bool tabletToolButtonEvent(const QSet<uint> &buttons); | ||
387 | virtual bool tabletPadButtonEvent(const QSet<uint> &buttons); | 410 | virtual bool tabletPadButtonEvent(const QSet<uint> &buttons); | ||
388 | virtual bool tabletPadStripEvent(int number, int position, bool isFinger); | 411 | virtual bool tabletPadStripEvent(int number, int position, bool isFinger); | ||
389 | virtual bool tabletPadRingEvent(int number, int position, bool isFinger); | 412 | virtual bool tabletPadRingEvent(int number, int position, bool isFinger); | ||
390 | 413 | | |||
391 | protected: | 414 | protected: | ||
392 | void passToWaylandServer(QKeyEvent *event); | 415 | void passToWaylandServer(QKeyEvent *event); | ||
393 | }; | 416 | }; | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
There is an unknown macro here somewhere. Configuration is required. If KWIN_SINGLETON is a macro then please configure it.