MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / pointerEvent

Method pointerEvent

Plugins/RabbitVNC/Service/Connection.cpp:346–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void CConnection::pointerEvent(const rfb::Point &pos, int buttonMask)
347{
348 //qDebug(RabbitVNC, "pos:%d,%d;button:%d", pos.x, pos.y, buttonMask);
349 CInputDevice::MouseButtons button;
350 if(buttonMask & 0x1)
351 button |= CInputDevice::LeftButton;
352 if(buttonMask & 0x2)
353 button |= CInputDevice::MouseButton::MiddleButton;
354 if(buttonMask & 0x4)
355 button |= CInputDevice::MouseButton::RightButton;
356 if(buttonMask & 0x8)
357 button |= CInputDevice::MouseButton::UWheelButton;
358 if(buttonMask & 0x10)
359 button |= CInputDevice::MouseButton::DWheelButton;
360 if(buttonMask & 0x20)
361 button |= CInputDevice::MouseButton::LWheelButton;
362 if(buttonMask & 0x40)
363 button |= CInputDevice::MouseButton::RWheelButton;
364
365 if(m_InputDevice)
366 m_InputDevice->MouseEvent(button, QPoint(pos.x, pos.y));
367}
368
369void CConnection::clientCutText(const char *str)
370{

Callers

nothing calls this directly

Calls 1

MouseEventMethod · 0.45

Tested by

no test coverage detected