| 956 | } |
| 957 | |
| 958 | void PointerInputRedirection::updateButton(uint32_t button, PointerButtonState state) |
| 959 | { |
| 960 | m_buttons[button] = state; |
| 961 | |
| 962 | // update Qt buttons |
| 963 | m_qtButtons = Qt::NoButton; |
| 964 | for (auto it = m_buttons.constBegin(); it != m_buttons.constEnd(); ++it) { |
| 965 | if (it.value() == PointerButtonState::Released) { |
| 966 | continue; |
| 967 | } |
| 968 | m_qtButtons |= buttonToQtMouseButton(it.key()); |
| 969 | } |
| 970 | |
| 971 | Q_EMIT input()->pointerButtonStateChanged(button, state); |
| 972 | } |
| 973 | |
| 974 | void PointerInputRedirection::warp(const QPointF &pos) |
| 975 | { |
nothing calls this directly
no test coverage detected