Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1015 Lines • ▼ Show 20 Line(s) | 1006 | [this] (Qt::Orientation orientation, qreal delta) { | |||
---|---|---|---|---|---|
1016 | default: | 1016 | default: | ||
1017 | Q_UNREACHABLE(); | 1017 | Q_UNREACHABLE(); | ||
1018 | break; | 1018 | break; | ||
1019 | } | 1019 | } | ||
1020 | // TODO: Fix time | 1020 | // TODO: Fix time | ||
1021 | m_pointer->processAxis(axis, delta, 0); | 1021 | m_pointer->processAxis(axis, delta, 0); | ||
1022 | } | 1022 | } | ||
1023 | ); | 1023 | ); | ||
1024 | connect(device, &FakeInputDevice::touchDownRequested, this, | ||||
1025 | [this] (quint32 id, const QPointF &pos) { | ||||
1026 | // TODO: Fix time | ||||
1027 | m_touch->processDown(id, pos, 0); | ||||
1028 | } | ||||
1029 | ); | ||||
1030 | connect(device, &FakeInputDevice::touchMotionRequested, this, | ||||
1031 | [this] (quint32 id, const QPointF &pos) { | ||||
1032 | // TODO: Fix time | ||||
1033 | m_touch->processMotion(id, pos, 0); | ||||
1034 | } | ||||
1035 | ); | ||||
1036 | connect(device, &FakeInputDevice::touchUpRequested, this, | ||||
1037 | [this] (quint32 id) { | ||||
1038 | // TODO: Fix time | ||||
1039 | m_touch->processUp(id, 0); | ||||
1040 | } | ||||
1041 | ); | ||||
1042 | connect(device, &FakeInputDevice::touchCancelRequested, this, | ||||
1043 | [this] () { | ||||
1044 | m_touch->cancel(); | ||||
1045 | } | ||||
1046 | ); | ||||
1047 | connect(device, &FakeInputDevice::touchFrameRequested, this, | ||||
1048 | [this] () { | ||||
1049 | m_touch->frame(); | ||||
1050 | } | ||||
1051 | ); | ||||
1024 | } | 1052 | } | ||
1025 | ); | 1053 | ); | ||
1026 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | 1054 | connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure); | ||
1027 | 1055 | | |||
1028 | m_keyboard->init(); | 1056 | m_keyboard->init(); | ||
1029 | m_pointer->init(); | 1057 | m_pointer->init(); | ||
1030 | m_touch->init(); | 1058 | m_touch->init(); | ||
1031 | } | 1059 | } | ||
▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines |