VirtualBox

Ignore:
Timestamp:
Jun 14, 2022 9:52:49 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151852
Message:

Touchpad: First part of touchpad support, PDM interface and device emulation (see bugref:9891).

File:
1 edited

Legend:

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

    r93115 r95271  
    174174
    175175
    176 static DECLCALLBACK(int) drvMouseQueuePutEventMultiTouch(PPDMIMOUSEPORT pInterface,
     176static DECLCALLBACK(int) drvMouseQueuePutEventMTAbs(PPDMIMOUSEPORT pInterface,
    177177                                                         uint8_t cContacts,
    178178                                                         const uint64_t *pau64Contacts,
     
    180180{
    181181    PDRVMOUSEQUEUE pThis = IMOUSEPORT_2_DRVMOUSEQUEUE(pInterface);
    182     return pThis->pUpPort->pfnPutEventMultiTouch(pThis->pUpPort, cContacts, pau64Contacts, u32ScanTime);
     182    return pThis->pUpPort->pfnPutEventTouchScreen(pThis->pUpPort, cContacts, pau64Contacts, u32ScanTime);
     183}
     184
     185static DECLCALLBACK(int) drvMouseQueuePutEventMTRel(PPDMIMOUSEPORT pInterface,
     186                                                         uint8_t cContacts,
     187                                                         const uint64_t *pau64Contacts,
     188                                                         uint32_t u32ScanTime)
     189{
     190    PDRVMOUSEQUEUE pThis = IMOUSEPORT_2_DRVMOUSEQUEUE(pInterface);
     191    return pThis->pUpPort->pfnPutEventTouchPad(pThis->pUpPort, cContacts, pau64Contacts, u32ScanTime);
    183192}
    184193
     
    195204 * @param   fRel        Is relative reporting supported?
    196205 * @param   fAbs        Is absolute reporting supported?
    197  * @param   fMT         Is multi-touch reporting supported?
    198  */
    199 static DECLCALLBACK(void) drvMousePassThruReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs, bool fMT)
     206 * @param   fMTAbs      Is absolute multi-touch reporting supported?
     207 * @param   fMTRel         Is relative multi-touch reporting supported?
     208 */
     209static DECLCALLBACK(void) drvMousePassThruReportModes(PPDMIMOUSECONNECTOR pInterface, bool fRel, bool fAbs, bool fMTAbs, bool fMTRel)
    200210{
    201211    PDRVMOUSEQUEUE pDrv = PPDMIMOUSECONNECTOR_2_DRVMOUSEQUEUE(pInterface);
    202     pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs, fMT);
     212    pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs, fMTAbs, fMTRel);
    203213}
    204214
     
    351361    pDrv->IPort.pfnPutEvent                 = drvMouseQueuePutEvent;
    352362    pDrv->IPort.pfnPutEventAbs              = drvMouseQueuePutEventAbs;
    353     pDrv->IPort.pfnPutEventMultiTouch       = drvMouseQueuePutEventMultiTouch;
     363    pDrv->IPort.pfnPutEventTouchScreen      = drvMouseQueuePutEventMTAbs;
     364    pDrv->IPort.pfnPutEventTouchPad         = drvMouseQueuePutEventMTRel;
    354365
    355366    /*
Note: See TracChangeset for help on using the changeset viewer.

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