https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/2c1ced34-340a-46cd-be6e-fc8cab7c3b17
| 2103 | |
| 2104 | // https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/2c1ced34-340a-46cd-be6e-fc8cab7c3b17 |
| 2105 | bool CBackendFreeRDP::SendMouseEvent(UINT16 flags, QPoint pos, bool isExtended) |
| 2106 | { |
| 2107 | if(m_pParameter && m_pParameter->GetOnlyView()) return true; |
| 2108 | if(!m_pContext) return false; |
| 2109 | |
| 2110 | #if FREERDP_VERSION_MAJOR >= 3 |
| 2111 | if(isExtended) |
| 2112 | freerdp_client_send_extended_button_event( |
| 2113 | &m_pContext->Context, FALSE, flags, pos.x(), pos.y()); |
| 2114 | else |
| 2115 | freerdp_client_send_button_event( |
| 2116 | &m_pContext->Context, FALSE, flags, pos.x(), pos.y()); |
| 2117 | #else |
| 2118 | if(!m_pContext->Context.input) return false; |
| 2119 | return freerdp_input_send_mouse_event( |
| 2120 | m_pContext->Context.input, flags, pos.x(), pos.y()); |
| 2121 | #endif |
| 2122 | return true; |
| 2123 | } |
| 2124 | |
| 2125 | void CBackendFreeRDP::wheelEvent(QWheelEvent *event) |
| 2126 | { |
nothing calls this directly
no test coverage detected