MCPcopy Create free account
hub / github.com/KDE/kwin / updateButton

Method updateButton

src/pointer_input.cpp:958–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956}
957
958void 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
974void PointerInputRedirection::warp(const QPointF &pos)
975{

Callers

nothing calls this directly

Calls 3

buttonToQtMouseButtonFunction · 0.85
valueMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected