Changeset View
Changeset View
Standalone View
Standalone View
input_event.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | SwitchEvent::SwitchEvent(State state, quint32 timestamp, quint64 timestampMicroseconds, LibInput::Device* device) | |||
---|---|---|---|---|---|
60 | : QInputEvent(QEvent::User) | 60 | : QInputEvent(QEvent::User) | ||
61 | , m_state(state) | 61 | , m_state(state) | ||
62 | , m_timestampMicroseconds(timestampMicroseconds) | 62 | , m_timestampMicroseconds(timestampMicroseconds) | ||
63 | , m_device(device) | 63 | , m_device(device) | ||
64 | { | 64 | { | ||
65 | setTimestamp(timestamp); | 65 | setTimestamp(timestamp); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | TabletEvent::TabletEvent(Type t, const QPointF &pos, const QPointF &globalPos, | ||||
69 | int device, int pointerType, qreal pressure, int xTilt, int yTilt, | ||||
70 | qreal tangentialPressure, qreal rotation, int z, | ||||
71 | Qt::KeyboardModifiers keyState, qint64 uniqueID, | ||||
72 | Qt::MouseButton button, Qt::MouseButtons buttons, InputRedirection::TabletToolType toolType, const QVector<InputRedirection::Capability> &capabilities, quint64 serialId, const QString &tabletSysName) | ||||
73 | : QTabletEvent(t, pos, globalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID, button, buttons) | ||||
74 | , m_toolType(toolType) | ||||
75 | , m_capabilities(capabilities) | ||||
76 | , m_serialId(serialId) | ||||
77 | , m_tabletSysName(tabletSysName) | ||||
78 | { | ||||
79 | } | ||||
80 | | ||||
68 | } | 81 | } |