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

Method pointerEvent

Plugins/TigerVnc/Service/Connection.cpp:347–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

MouseEventMethod · 0.45

Tested by

no test coverage detected