VirtualBox

Changeset 46516 in vbox for trunk


Ignore:
Timestamp:
Jun 13, 2013 8:29:21 AM (12 years ago)
Author:
vboxsync
Message:

Devices/Input: add a report ID field to our USB tablet report descriptor.

File:
1 edited

Legend:

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

    r44528 r46516  
    197197typedef struct USBHIDT_REPORT
    198198{
     199    uint8_t     rid;
    199200    uint8_t     btn;
    200201    int8_t      dz;
     202    int8_t      dummy;
    201203    uint16_t    cx;
    202204    uint16_t    cy;
     
    300302 * properly.
    301303 */
     304#define REPORTID_MOUSE 1
     305
    302306static const uint8_t g_UsbHidTReportDesc[] =
    303307{
     
    305309    /* Usage */                     0x09, 0x02,     /* Mouse */
    306310    /* Collection */                0xA1, 0x01,     /* Application */
     311    /* Report ID */                 0x85, REPORTID_MOUSE,
    307312    /* Usage */                     0x09, 0x01,     /* Pointer */
    308313    /* Collection */                0xA1, 0x00,     /* Physical */
     
    325330    /* Report Count */              0x95, 0x01,     /* 1 */
    326331    /* Input */                     0x81, 0x06,     /* Data, Value, Relative, Bit field */
     332    /* Report Count */              0x95, 0x01,     /* 1 (padding byte) */
     333    /* Input */                     0x81, 0x03,     /* Constant, Value, Absolute, Bit field */
    327334    /* Usage Page */                0x05, 0x01,     /* Generic Desktop */
    328335    /* Usage */                     0x09, 0x30,     /* X */
     
    725732    if (isAbsolute)
    726733    {
     734        pReport->t.rid = REPORTID_MOUSE;
    727735        pReport->t.btn = pAccumulated->btn;
    728736        pReport->t.cx  = pAccumulated->dX;
Note: See TracChangeset for help on using the changeset viewer.

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