VirtualBox

Changeset 53965 in vbox for trunk/include/VBox/VBoxVideo.h


Ignore:
Timestamp:
Jan 26, 2015 8:37:10 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97864
Message:

Devices/Graphics, Main: optionally send cursor integration toggle and guest cursor position information through the graphics device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxVideo.h

    r53846 r53965  
    857857#define VBVA_CMDVBVA_CTL     18 /* G->H DMA command             */
    858858#define VBVA_QUERY_MODE_HINTS 19 /* Query most recent mode hints sent. */
     859/** Report the guest virtual desktop position and size for mapping host and
     860 * guest pointer positions. */
     861#define VBVA_REPORT_INPUT_MAPPING 20
     862/** Report the guest cursor position and query the host position. */
     863#define VBVA_CURSOR_POSITION 21
    859864
    860865/* host->guest commands */
     
    915920 * Set value to VERR_NOT_SUPPORTED before calling. */
    916921#define VBOX_VBVA_CONF32_MODE_HINT_REPORTING  2
     922/** Returns VINF_SUCCESS if the host can receive guest cursor information via
     923 * VBVA.  Set value to VERR_NOT_SUPPORTED before calling. */
     924#define VBOX_VBVA_CONF32_GUEST_CURSOR_REPORTING  3
     925/** Returns the currently available host cursor capabilities.  Available if
     926 * VBVACONF32::VBOX_VBVA_CONF32_GUEST_CURSOR_REPORTING returns success.
     927 * @see VMMDevReqMouseStatus::mouseFeatures. */
     928#define VBOX_VBVA_CONF32_CURSOR_CAPABILITIES  4
    917929
    918930typedef struct VBVACONF32
     
    10831095/** The guest can read video mode hints sent via VBVA. */
    10841096#define VBVACAPS_VIDEO_MODE_HINTS       0x00000004
     1097/** The guest can switch to a software cursor on demand. */
     1098#define VBVACAPS_DISABLE_CURSOR_INTEGRATION 0x00000008
    10851099typedef struct VBVACAPS
    10861100{
     
    11471161
    11481162#define VBVAMODEHINT_MAGIC UINT32_C(0x0801add9)
     1163
     1164/** Report the rectangle relative to which absolute pointer events should be
     1165 *  expressed.  This information remains valid until the next VBVA resize event
     1166 *  for any screen, at which time it is reset to the bounding rectangle of all
     1167 *  virtual screens.
     1168 *  @see VBVA_REPORT_INPUT_MAPPING. */
     1169typedef struct VBVAREPORTINPUTMAPPING
     1170{
     1171    int32_t x;    /**< Upper left X co-ordinate relative to the first screen. */
     1172    int32_t y;    /**< Upper left Y co-ordinate relative to the first screen. */
     1173    uint32_t cx;  /**< Rectangle width. */
     1174    uint32_t cy;  /**< Rectangle height. */
     1175} VBVAREPORTINPUTMAPPING;
     1176
     1177/** Report the guest cursor position and query the host one.  The host may wish
     1178 *  to use the guest information to re-position its own cursor (though this is
     1179 *  currently unlikely).
     1180 *  @see VBVA_CURSOR_POSITION */
     1181typedef struct VBVACURSORPOSITION
     1182{
     1183    uint32_t fReportPosition;  /**< Are we reporting a position? */
     1184    uint32_t x;                /**< Guest cursor X position */
     1185    uint32_t y;                /**< Guest cursor Y position */
     1186} VBVACURSORPOSITION;
    11491187
    11501188#pragma pack()
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