VirtualBox

Changeset 26624 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 18, 2010 10:35:24 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57827
Message:

Devices, Main, pdmifs.h: initial support for PS/2 touchscreen emulation, based on the Lifebook touchscreen device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MouseImpl.h

    r26173 r26624  
    4646typedef ConsoleEventBuffer<MouseEvent> MouseEventBuffer;
    4747
     48enum
     49{
     50    MOUSE_DEVCAP_ABSOLUTE = 1
     51};
     52
    4853class ATL_NO_VTABLE Mouse :
    4954    public VirtualBoxBase,
     
    9095    static const PDMDRVREG  DrvReg;
    9196
     97    Console *getParent() const
     98    {
     99        return mParent;
     100    }
     101
    92102private:
    93103
    94104    static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
     105    static DECLCALLBACK(void)   mouseAbsModeChange (PPDMIMOUSECONNECTOR pInterface, bool fAbs);
    95106    static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    96107    static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
     108   
     109    int getVMMDevMouseCaps(uint32_t *pfCaps);
     110    int setVMMDevMouseCaps(uint32_t fCaps);
     111    int reportRelEventToMouseDev(int32_t dx, int32_t dy, int32_t dz,
     112                                 int32_t dw, uint32_t fButtons);
     113    int reportAbsEventToMouseDev(uint32_t mouseXAbs, uint32_t mouseYAbs);
     114    int reportAbsEventToVMMDev(uint32_t mouseXAbs, uint32_t mouseYAbs);
     115    int convertDisplayWidth(LONG x, uint32_t *pcX);
     116    int convertDisplayHeight(LONG y, uint32_t *pcY);
     117    bool needsRelativeEvent(uint32_t cXAbs, uint32_t cYAbs, int32_t dz, int32_t dw, uint32_t fButtons, uint32_t fCaps);
    97118
    98119    const ComObjPtr<Console, ComWeakRef> mParent;
     
    101122
    102123    LONG uHostCaps;
     124    LONG uDevCaps;
    103125    uint32_t mLastAbsX;
    104126    uint32_t mLastAbsY;
     127    uint32_t mLastButtons;
    105128};
    106129
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