Changeset View
Changeset View
Standalone View
Standalone View
touch_input.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | |||||
143 | void TouchInputRedirection::cleanupDecoration(Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now) | 143 | void TouchInputRedirection::cleanupDecoration(Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now) | ||
144 | { | 144 | { | ||
145 | Q_UNUSED(old); | 145 | Q_UNUSED(old); | ||
146 | Q_UNUSED(now); | 146 | Q_UNUSED(now); | ||
147 | 147 | | |||
148 | // nothing to do | 148 | // nothing to do | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | void TouchInputRedirection::insertId(quint32 internalId, qint32 kwaylandId) | 151 | void TouchInputRedirection::insertId(qint32 internalId, qint32 kwaylandId) | ||
152 | { | 152 | { | ||
153 | m_idMapper.insert(internalId, kwaylandId); | 153 | m_idMapper.insert(internalId, kwaylandId); | ||
154 | } | 154 | } | ||
155 | 155 | | |||
156 | qint32 TouchInputRedirection::mappedId(quint32 internalId) | 156 | qint32 TouchInputRedirection::mappedId(qint32 internalId) | ||
157 | { | 157 | { | ||
158 | auto it = m_idMapper.constFind(internalId); | 158 | auto it = m_idMapper.constFind(internalId); | ||
159 | if (it != m_idMapper.constEnd()) { | 159 | if (it != m_idMapper.constEnd()) { | ||
160 | return it.value(); | 160 | return it.value(); | ||
161 | } | 161 | } | ||
162 | return -1; | 162 | return -1; | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | void TouchInputRedirection::removeId(quint32 internalId) | 165 | void TouchInputRedirection::removeId(qint32 internalId) | ||
166 | { | 166 | { | ||
167 | m_idMapper.remove(internalId); | 167 | m_idMapper.remove(internalId); | ||
168 | } | 168 | } | ||
169 | 169 | | |||
170 | void TouchInputRedirection::processDown(qint32 id, const QPointF &pos, quint32 time, LibInput::Device *device) | 170 | void TouchInputRedirection::processDown(qint32 id, const QPointF &pos, quint32 time, LibInput::Device *device) | ||
171 | { | 171 | { | ||
172 | Q_UNUSED(device) | 172 | Q_UNUSED(device) | ||
173 | if (!inited()) { | 173 | if (!inited()) { | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |