Changeset View
Changeset View
Standalone View
Standalone View
tablet_input.h
Show All 20 Lines | |||||
21 | #ifndef KWIN_TABLET_INPUT_H | 21 | #ifndef KWIN_TABLET_INPUT_H | ||
22 | #define KWIN_TABLET_INPUT_H | 22 | #define KWIN_TABLET_INPUT_H | ||
23 | #include "input.h" | 23 | #include "input.h" | ||
24 | 24 | | |||
25 | #include <QHash> | 25 | #include <QHash> | ||
26 | #include <QObject> | 26 | #include <QObject> | ||
27 | #include <QPointF> | 27 | #include <QPointF> | ||
28 | #include <QPointer> | 28 | #include <QPointer> | ||
29 | #include <QTabletEvent> | | |||
30 | 29 | | |||
31 | namespace KWin | 30 | namespace KWin | ||
32 | { | 31 | { | ||
33 | class InputRedirection; | | |||
34 | class Toplevel; | 32 | class Toplevel; | ||
35 | 33 | | |||
36 | namespace Decoration | 34 | namespace Decoration | ||
37 | { | 35 | { | ||
38 | class DecoratedClientImpl; | 36 | class DecoratedClientImpl; | ||
39 | } | 37 | } | ||
40 | 38 | | |||
41 | namespace LibInput | 39 | namespace LibInput | ||
42 | { | 40 | { | ||
43 | class Device; | 41 | class Device; | ||
44 | } | 42 | } | ||
45 | 43 | | |||
46 | class TabletInputRedirection : public InputDeviceHandler | 44 | class TabletInputRedirection : public InputDeviceHandler | ||
47 | { | 45 | { | ||
48 | Q_OBJECT | 46 | Q_OBJECT | ||
49 | public: | 47 | public: | ||
50 | explicit TabletInputRedirection(InputRedirection *parent); | 48 | explicit TabletInputRedirection(InputRedirection *parent); | ||
51 | ~TabletInputRedirection() override; | 49 | ~TabletInputRedirection() override; | ||
52 | 50 | | |||
53 | void tabletPad(); | 51 | void tabletPad(); | ||
54 | 52 | | |||
55 | void tabletToolEvent(KWin::InputRedirection::TabletEventType type, const QPointF &pos, | 53 | void tabletToolEvent(KWin::InputRedirection::TabletEventType type, const QPointF &pos, | ||
56 | qreal pressure, int xTilt, int yTilt, qreal rotation, bool tipDown, | 54 | qreal pressure, int xTilt, int yTilt, qreal rotation, bool tipDown, | ||
57 | bool tipNear, quint64 serialId, quint64 toolId, LibInput::Device *device); | 55 | bool tipNear, quint64 serialId, quint64 toolId, | ||
56 | InputRedirection::TabletToolType toolType, const QVector<InputRedirection::Capability> &capabilities, | ||||
57 | quint32 time, LibInput::Device *device); | ||||
58 | void tabletToolButtonEvent(uint button, bool isPressed); | 58 | void tabletToolButtonEvent(uint button, bool isPressed); | ||
59 | 59 | | |||
60 | void tabletPadButtonEvent(uint button, bool isPressed); | 60 | void tabletPadButtonEvent(uint button, bool isPressed); | ||
61 | void tabletPadStripEvent(int number, int position, bool isFinger); | 61 | void tabletPadStripEvent(int number, int position, bool isFinger); | ||
62 | void tabletPadRingEvent(int number, int position, bool isFinger); | 62 | void tabletPadRingEvent(int number, int position, bool isFinger); | ||
63 | 63 | | |||
64 | bool positionValid() const override | 64 | bool positionValid() const override | ||
65 | { | 65 | { | ||
Show All 26 Lines |