VirtualBox

Changeset 26624 in vbox for trunk/include/VBox


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/include/VBox/pdmifs.h

    r26573 r26624  
    304304     */
    305305    DECLR3CALLBACKMEMBER(int, pfnPutEvent,(PPDMIMOUSEPORT pInterface, int32_t i32DeltaX, int32_t i32DeltaY, int32_t i32DeltaZ, int32_t i32DeltaW, uint32_t fButtonStates));
     306    /**
     307     * Puts an absolute mouse event.
     308     * This is called by the source of mouse events. The event will be passed up until the
     309     * topmost driver, which then calls the registered event handler.
     310     *
     311     * @returns VBox status code.
     312     * @param   pInterface          Pointer to this interface structure.
     313     * @param   i32cX               The X value, in the range 0 to 0xffff.
     314     * @param   i32cY               The Y value, in the range 0 to 0xffff.
     315     * @thread  The emulation thread.
     316     */
     317    DECLR3CALLBACKMEMBER(int, pfnPutEventAbs,(PPDMIMOUSEPORT pInterface, int32_t i32cX, int32_t i32cY));
    306318} PDMIMOUSEPORT;
    307319
     
    316328
    317329
     330/** Pointer to a mouse connector interface. */
     331typedef struct PDMIMOUSECONNECTOR *PPDMIMOUSECONNECTOR;
    318332/**
    319333 * Mouse connector interface (up).
    320334 * Pair with PDMIMOUSEPORT.
    321335 */
    322 typedef PDMIDUMMY PDMIMOUSECONNECTOR;
    323  /** Pointer to a mouse connector interface. */
    324 typedef PDMIMOUSECONNECTOR *PPDMIMOUSECONNECTOR;
     336typedef struct PDMIMOUSECONNECTOR
     337{
     338    /**
     339     * Notifies the the downstream driver when the guest switches the device into or out of absolute mode.
     340     *
     341     * @param   pInterface      Pointer to the this interface.
     342     * @param   fAbs            Whether absolute mode is currently enabled
     343     */
     344    DECLR3CALLBACKMEMBER(void, pfnAbsModeChange,(PPDMIMOUSECONNECTOR pInterface, bool fAbs));
     345
     346} PDMIMOUSECONNECTOR;
     347
    325348/** PDMIMOUSECONNECTOR interface ID.  */
    326349#define PDMIMOUSECONNECTOR_IID                  "847f965f-0eb8-4363-88ac-b0ee58a05bde"
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