Changeset 27159 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 8, 2010 11:56:29 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MouseImpl.cpp
r27129 r27159 146 146 ///////////////////////////////////////////////////////////////////////////// 147 147 148 intMouse::getVMMDevMouseCaps(uint32_t *pfCaps)148 HRESULT Mouse::getVMMDevMouseCaps(uint32_t *pfCaps) 149 149 { 150 150 AssertPtrReturn(pfCaps, E_POINTER); … … 158 158 } 159 159 160 intMouse::setVMMDevMouseCaps(uint32_t fCaps)160 HRESULT Mouse::setVMMDevMouseCaps(uint32_t fCaps) 161 161 { 162 162 VMMDev *pVMMDev = mParent->getVMMDev(); … … 269 269 * @returns COM status code 270 270 */ 271 intMouse::reportRelEventToMouseDev(int32_t dx, int32_t dy, int32_t dz,272 int32_t dw, uint32_t fButtons)271 HRESULT Mouse::reportRelEventToMouseDev(int32_t dx, int32_t dy, int32_t dz, 272 int32_t dw, uint32_t fButtons) 273 273 { 274 274 if (dx || dy || dz || dw || fButtons != mLastButtons) … … 300 300 * @returns COM status code 301 301 */ 302 intMouse::reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs,303 int32_t dz, int32_t dw, uint32_t fButtons)302 HRESULT Mouse::reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs, 303 int32_t dz, int32_t dw, uint32_t fButtons) 304 304 { 305 305 if ( mouseXAbs != mLastAbsX || mouseYAbs != mLastAbsY … … 332 332 * @returns COM status code 333 333 */ 334 intMouse::reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs)334 HRESULT Mouse::reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs) 335 335 { 336 336 VMMDev *pVMMDev = mParent->getVMMDev(); … … 396 396 * @returns COM status value 397 397 */ 398 intMouse::convertDisplayWidth(LONG x, uint32_t *pcX)398 HRESULT Mouse::convertDisplayWidth(LONG x, uint32_t *pcX) 399 399 { 400 400 AssertPtrReturn(pcX, E_POINTER); … … 415 415 * @returns COM status value 416 416 */ 417 intMouse::convertDisplayHeight(LONG y, uint32_t *pcY)417 HRESULT Mouse::convertDisplayHeight(LONG y, uint32_t *pcY) 418 418 { 419 419 AssertPtrReturn(pcY, E_POINTER); … … 532 532 fRelDev = true; 533 533 } 534 if ( RT_SUCCESS(getVMMDevMouseCaps(&u32MouseCaps)))534 if (SUCCEEDED(getVMMDevMouseCaps(&u32MouseCaps))) 535 535 fVMMDevCanAbs = (u32MouseCaps & VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE) 536 536 && fRelDev; -
trunk/src/VBox/Main/include/MouseImpl.h
r27129 r27159 123 123 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 124 124 125 intgetVMMDevMouseCaps(uint32_t *pfCaps);126 intsetVMMDevMouseCaps(uint32_t fCaps);127 intreportRelEventToMouseDev(int32_t dx, int32_t dy, int32_t dz,125 HRESULT getVMMDevMouseCaps(uint32_t *pfCaps); 126 HRESULT setVMMDevMouseCaps(uint32_t fCaps); 127 HRESULT reportRelEventToMouseDev(int32_t dx, int32_t dy, int32_t dz, 128 128 int32_t dw, uint32_t fButtons); 129 intreportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs,129 HRESULT reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs, 130 130 int32_t dz, int32_t dw, uint32_t fButtons); 131 intreportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs);132 intconvertDisplayWidth(LONG x, uint32_t *pcX);133 intconvertDisplayHeight(LONG y, uint32_t *pcY);131 HRESULT reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs); 132 HRESULT convertDisplayWidth(LONG x, uint32_t *pcX); 133 HRESULT convertDisplayHeight(LONG y, uint32_t *pcY); 134 134 135 135 void sendMouseCapsNotifications(void);
Note:
See TracChangeset
for help on using the changeset viewer.