- Timestamp:
- Mar 2, 2010 10:32:28 AM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp
r26650 r26935 168 168 * @param fAbs The new absolute mode state. 169 169 */ 170 static DECLCALLBACK(void) drvMousePassThru AbsMode(PPDMIMOUSECONNECTOR pInterface, bool fAbs)170 static DECLCALLBACK(void) drvMousePassThruReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs) 171 171 { 172 172 PDRVMOUSEQUEUE pDrv = PPDMIMOUSECONNECTOR_2_DRVMOUSEQUEUE(pInterface); 173 pDrv->pDownConnector->pfn AbsModeChange(pDrv->pDownConnector, fAbs);173 pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs); 174 174 } 175 175 … … 289 289 pDrvIns->IBase.pfnQueryInterface = drvMouseQueueQueryInterface; 290 290 /* IMouseConnector. */ 291 pDrv->IConnector.pfn AbsModeChange = drvMousePassThruAbsMode;291 pDrv->IConnector.pfnReportModes = drvMousePassThruReportModes; 292 292 /* IMousePort. */ 293 293 pDrv->IPort.pfnPutEvent = drvMouseQueuePutEvent; -
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r26811 r26935 1108 1108 * Set received event type to absolute or relative. 1109 1109 */ 1110 pThis->Lun0.pDrv->pfnAbsModeChange(pThis->Lun0.pDrv, pThis->isAbsolute); 1110 pThis->Lun0.pDrv->pfnReportModes(pThis->Lun0.pDrv, !pThis->isAbsolute, 1111 pThis->isAbsolute); 1111 1112 1112 1113 RTCritSectLeave(&pThis->CritSect); -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp
r26834 r26935 583 583 584 584 /** 585 * @interface_method_impl{PDMIMOUSECONNECTOR,pfn AbsModeChange}586 */ 587 DECLCALLBACK(void) Mouse::mouse AbsModeChange(PPDMIMOUSECONNECTOR pInterface, bool fEnabled)585 * @interface_method_impl{PDMIMOUSECONNECTOR,pfnReportModes} 586 */ 587 DECLCALLBACK(void) Mouse::mouseReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs) 588 588 { 589 589 PDRVMAINMOUSE pDrv = RT_FROM_MEMBER(pInterface, DRVMAINMOUSE, IConnector); 590 if (fEnabled) 590 if (fRel) 591 pDrv->pMouse->uDevCaps |= MOUSE_DEVCAP_RELATIVE; 592 else 593 pDrv->pMouse->uDevCaps &= ~MOUSE_DEVCAP_RELATIVE; 594 if (fAbs) 591 595 pDrv->pMouse->uDevCaps |= MOUSE_DEVCAP_ABSOLUTE; 592 596 else … … 656 660 pDrvIns->IBase.pfnQueryInterface = Mouse::drvQueryInterface; 657 661 658 pData->IConnector.pfn AbsModeChange = Mouse::mouseAbsModeChange;662 pData->IConnector.pfnReportModes = Mouse::mouseReportModes; 659 663 660 664 /* -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.h
r26834 r26935 129 129 130 130 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 131 static DECLCALLBACK(void) mouse AbsModeChange (PPDMIMOUSECONNECTOR pInterface, bool fAbs);131 static DECLCALLBACK(void) mouseReportModes (PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs); 132 132 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 133 133 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); -
trunk/src/VBox/Main/MouseImpl.cpp
r26924 r26935 501 501 502 502 /** 503 * @interface_method_impl{PDMIMOUSECONNECTOR,pfn AbsModeChange}504 */ 505 DECLCALLBACK(void) Mouse::mouse AbsModeChange(PPDMIMOUSECONNECTOR pInterface, bool fEnabled)503 * @interface_method_impl{PDMIMOUSECONNECTOR,pfnReportModes} 504 */ 505 DECLCALLBACK(void) Mouse::mouseReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs) 506 506 { 507 507 PDRVMAINMOUSE pDrv = RT_FROM_MEMBER(pInterface, DRVMAINMOUSE, IConnector); 508 if (fEnabled) 508 if (fRel) 509 pDrv->pMouse->uDevCaps |= MOUSE_DEVCAP_RELATIVE; 510 else 511 pDrv->pMouse->uDevCaps &= ~MOUSE_DEVCAP_RELATIVE; 512 if (fAbs) 509 513 pDrv->pMouse->uDevCaps |= MOUSE_DEVCAP_ABSOLUTE; 510 514 else … … 574 578 pDrvIns->IBase.pfnQueryInterface = Mouse::drvQueryInterface; 575 579 576 pData->IConnector.pfn AbsModeChange = Mouse::mouseAbsModeChange;580 pData->IConnector.pfnReportModes = Mouse::mouseReportModes; 577 581 578 582 /* -
trunk/src/VBox/Main/include/MouseImpl.h
r26782 r26935 118 118 119 119 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID); 120 static DECLCALLBACK(void) mouse AbsModeChange (PPDMIMOUSECONNECTOR pInterface, bool fAbs);120 static DECLCALLBACK(void) mouseReportModes (PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs); 121 121 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 122 122 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
Note:
See TracChangeset
for help on using the changeset viewer.