| 345 | } |
| 346 | |
| 347 | void 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 | |
| 370 | void CConnection::clientCutText(const char *str) |
| 371 | { |
nothing calls this directly
no test coverage detected