VirtualBox

Changeset 51609 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 12, 2014 10:01:53 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94347
Message:

DrvMouse: Added queue flush callback like we have for keyboard.

File:
1 edited

Legend:

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

    r47571 r51609  
    201201    PDRVMOUSEQUEUE pDrv = PPDMIMOUSECONNECTOR_2_DRVMOUSEQUEUE(pInterface);
    202202    pDrv->pDownConnector->pfnReportModes(pDrv->pDownConnector, fRel, fAbs, fMT);
     203}
     204
     205
     206/**
     207 * Flush the mouse queue if there are pending events.
     208 *
     209 * @param   pInterface  Pointer to the mouse connector interface structure.
     210 */
     211static DECLCALLBACK(void) drvMouseFlushQueue(PPDMIMOUSECONNECTOR pInterface)
     212{
     213    PDRVMOUSEQUEUE pDrv = PPDMIMOUSECONNECTOR_2_DRVMOUSEQUEUE(pInterface);
     214
     215    AssertPtr(pDrv->pQueue);
     216    PDMQueueFlushIfNecessary(pDrv->pQueue);
    203217}
    204218
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