Changeset 35989 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 15, 2011 7:55:27 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MouseImpl.h
r35871 r35989 99 99 HRESULT reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs, 100 100 int32_t dz, int32_t dw, uint32_t fButtons); 101 HRESULT reportAbsEventToVMMDev( uint32_t mouseXAbs, uint32_t mouseYAbs);102 HRESULT reportAbsEvent( uint32_t mouseXAbs, uint32_t mouseYAbs,101 HRESULT reportAbsEventToVMMDev(int32_t mouseXAbs, int32_t mouseYAbs); 102 HRESULT reportAbsEvent(int32_t mouseXAbs, int32_t mouseYAbs, 103 103 int32_t dz, int32_t dw, uint32_t fButtons, 104 104 bool fUsesVMMDevEvent); … … 123 123 124 124 uint32_t mfVMMDevGuestCaps; /** We cache this to avoid access races */ 125 uint32_t mcLastAbsX;126 uint32_t mcLastAbsY;125 int32_t mcLastAbsX; 126 int32_t mcLastAbsY; 127 127 uint32_t mfLastButtons; 128 128 -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r35871 r35989 349 349 * @returns COM status code 350 350 */ 351 HRESULT Mouse::reportAbsEventToVMMDev( uint32_t mouseXAbs, uint32_t mouseYAbs)351 HRESULT Mouse::reportAbsEventToVMMDev(int32_t mouseXAbs, int32_t mouseYAbs) 352 352 { 353 353 VMMDev *pVMMDev = mParent->getVMMDev(); … … 375 375 * @returns COM status code 376 376 */ 377 HRESULT Mouse::reportAbsEvent( uint32_t mouseXAbs, uint32_t mouseYAbs,377 HRESULT Mouse::reportAbsEvent(int32_t mouseXAbs, int32_t mouseYAbs, 378 378 int32_t dz, int32_t dw, uint32_t fButtons, 379 379 bool fUsesVMMDevEvent) … … 536 536 HRESULT rc = convertDisplayRes(x, y, &mouseXAbs, &mouseYAbs, &fValid); 537 537 if (FAILED(rc)) return rc; 538 539 /** @todo multi-monitor Windows guests expect this to be unbounded.540 * Understand the issues involved and fix for the rest. */541 /* if (mouseXAbs > 0xffff)542 mouseXAbs = mcLastAbsX;543 if (mouseYAbs > 0xffff)544 mouseYAbs = mcLastAbsY; */545 538 546 539 fButtons = mouseButtonsToPDM(buttonState);
Note:
See TracChangeset
for help on using the changeset viewer.