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