VirtualBox

Changeset 46932 in vbox for trunk/src/VBox/Devices/Input


Ignore:
Timestamp:
Jul 3, 2013 1:02:28 PM (12 years ago)
Author:
vboxsync
Message:

Devices/Input/UsbMouse: add multi-touch mode to pfnReportModes in PDM.

Location:
trunk/src/VBox/Devices/Input
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r45025 r46932  
    705705    PPDMIMOUSECONNECTOR pDrv = pThis->Mouse.pDrv;
    706706    bool fEnabled = !!(pThis->mouse_status & MOUSE_STATUS_ENABLED);
    707     pDrv->pfnReportModes(pDrv, fEnabled, false);
     707    pDrv->pfnReportModes(pDrv, fEnabled, false, false);
    708708}
    709709
  • trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp

    r44528 r46932  
    162162 *
    163163 * @param   pInterface  Pointer to the mouse connector interface structure.
    164  * @param   fAbs        The new absolute mode state.
    165  */
    166 static DECLCALLBACK(void) drvMousePassThruReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs)
     164 * @param   fRel        Is relative reporting supported?
     165 * @param   fAbs        Is absolute reporting supported?
     166 * @param   fMT         Is multi-touch reporting supported?
     167 */
     168static DECLCALLBACK(void) drvMousePassThruReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs, bool fMT)
    167169{
    168170    PDRVMOUSEQUEUE pDrv = PPDMIMOUSECONNECTOR_2_DRVMOUSEQUEUE(pInterface);
    169     pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs);
     171    pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs, fMT);
    170172}
    171173
  • trunk/src/VBox/Devices/Input/UsbMouse.cpp

    r46930 r46932  
    14621462    pThis->Lun0.pDrv->pfnReportModes(pThis->Lun0.pDrv,
    14631463                                     pThis->enmMode == USBHIDMODE_RELATIVE,
    1464                                      pThis->enmMode == USBHIDMODE_ABSOLUTE);
     1464                                     pThis->enmMode == USBHIDMODE_ABSOLUTE,
     1465                                     pThis->enmMode == USBHIDMODE_MULTI_TOUCH);
    14651466
    14661467    RTCritSectLeave(&pThis->CritSect);
  • trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp

    r46817 r46932  
    4343    /** Is absolute mode currently supported? */
    4444    bool                        fAbs;
     45    /** Is multi-touch mode currently supported? */
     46    bool                        fMT;
    4547} DRVTSTMOUSE, *PDRVTSTMOUSE;
    4648
     
    100102 */
    101103static DECLCALLBACK(void) tstMouseReportModes(PPDMIMOUSECONNECTOR pInterface,
    102                                               bool fRel, bool fAbs)
     104                                              bool fRel, bool fAbs, bool fMT)
    103105{
    104106    PDRVTSTMOUSE pDrv = RT_FROM_MEMBER(pInterface, DRVTSTMOUSE, IConnector);
    105107    pDrv->fRel = fRel;
    106108    pDrv->fAbs = fAbs;
     109    pDrv->fMT  = fMT;
    107110}
    108111
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