Changeset View
Changeset View
Standalone View
Standalone View
input_event.cpp
Show All 29 Lines | 25 | MouseEvent::MouseEvent(QEvent::Type type, const QPointF &pos, Qt::MouseButton button, | |||
---|---|---|---|---|---|
30 | , m_delta(delta) | 30 | , m_delta(delta) | ||
31 | , m_deltaUnccelerated(deltaNonAccelerated) | 31 | , m_deltaUnccelerated(deltaNonAccelerated) | ||
32 | , m_timestampMicroseconds(timestampMicroseconds) | 32 | , m_timestampMicroseconds(timestampMicroseconds) | ||
33 | , m_device(device) | 33 | , m_device(device) | ||
34 | { | 34 | { | ||
35 | setTimestamp(timestamp); | 35 | setTimestamp(timestamp); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | WheelEvent::WheelEvent(const QPointF &pos, qreal delta, Qt::Orientation orientation, Qt::MouseButtons buttons, | 38 | WheelEvent::WheelEvent(const QPointF &pos, qreal delta, qint32 discreteDelta, Qt::Orientation orientation, | ||
39 | Qt::KeyboardModifiers modifiers, quint32 timestamp, LibInput::Device *device) | 39 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, InputRedirection::PointerAxisSource source, | ||
40 | quint32 timestamp, LibInput::Device *device) | ||||
40 | : QWheelEvent(pos, pos, QPoint(), (orientation == Qt::Horizontal) ? QPoint(delta, 0) : QPoint(0, delta), delta, orientation, buttons, modifiers) | 41 | : QWheelEvent(pos, pos, QPoint(), (orientation == Qt::Horizontal) ? QPoint(delta, 0) : QPoint(0, delta), delta, orientation, buttons, modifiers) | ||
41 | , m_device(device) | 42 | , m_device(device) | ||
43 | , m_orientation(orientation) | ||||
44 | , m_delta(delta) | ||||
45 | , m_discreteDelta(discreteDelta) | ||||
46 | , m_source(source) | ||||
42 | { | 47 | { | ||
43 | setTimestamp(timestamp); | 48 | setTimestamp(timestamp); | ||
44 | } | 49 | } | ||
45 | 50 | | |||
46 | KeyEvent::KeyEvent(QEvent::Type type, Qt::Key key, Qt::KeyboardModifiers modifiers, quint32 code, quint32 keysym, | 51 | KeyEvent::KeyEvent(QEvent::Type type, Qt::Key key, Qt::KeyboardModifiers modifiers, quint32 code, quint32 keysym, | ||
47 | const QString &text, bool autorepeat, quint32 timestamp, LibInput::Device *device) | 52 | const QString &text, bool autorepeat, quint32 timestamp, LibInput::Device *device) | ||
48 | : QKeyEvent(type, key, modifiers, code, keysym, 0, text, autorepeat) | 53 | : QKeyEvent(type, key, modifiers, code, keysym, 0, text, autorepeat) | ||
49 | , m_device(device) | 54 | , m_device(device) | ||
Show All 14 Lines |