VirtualBox

Ignore:
Timestamp:
Mar 2, 2010 10:32:28 AM (15 years ago)
Author:
vboxsync
Message:

pdmifs, Devices/Input, Main, FE/BFE: add support for absolute-only pointing devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp

    r26834 r26935  
    583583
    584584/**
    585  * @interface_method_impl{PDMIMOUSECONNECTOR,pfnAbsModeChange}
    586  */
    587 DECLCALLBACK(void) Mouse::mouseAbsModeChange(PPDMIMOUSECONNECTOR pInterface, bool fEnabled)
     585 * @interface_method_impl{PDMIMOUSECONNECTOR,pfnReportModes}
     586 */
     587DECLCALLBACK(void) Mouse::mouseReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs)
    588588{
    589589    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)
    591595        pDrv->pMouse->uDevCaps |= MOUSE_DEVCAP_ABSOLUTE;
    592596    else
     
    656660    pDrvIns->IBase.pfnQueryInterface        = Mouse::drvQueryInterface;
    657661
    658     pData->IConnector.pfnAbsModeChange      = Mouse::mouseAbsModeChange;
     662    pData->IConnector.pfnReportModes        = Mouse::mouseReportModes;
    659663
    660664    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette