Changeset 47656 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 10, 2013 2:00:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r47613 r47656 252 252 typedef struct USBHIDT_REPORT 253 253 { 254 uint8_t fButtons; 255 uint8_t padding; 254 256 uint16_t x; 255 257 uint16_t y; 256 uint8_t fButtons;257 258 } USBHIDT_REPORT, *PUSBHIDT_REPORT; 258 259 … … 401 402 /* Usage */ 0x09, 0x01, /* Pointer */ 402 403 /* Collection */ 0xA1, 0x00, /* Physical */ 403 /* Usage */ 0x09, 0x30, /* X */404 /* Usage */ 0x09, 0x31, /* Y */405 /* Logical Minimum */ 0x15, 0x00, /* 0 */406 /* Logical Maximum */ 0x26, 0xFF,0x7F,/* 0x7fff */407 /* Physical Minimum */ 0x35, 0x00, /* 0 */408 /* Physical Maximum */ 0x46, 0xFF,0x7F,/* 0x7fff */409 /* Report Size */ 0x75, 0x10, /* 16 */410 /* Report Count */ 0x95, 0x02, /* 2 */411 /* Input */ 0x81, 0x02, /* Data, Value, Absolute, Bit field */412 404 /* Usage Page */ 0x05, 0x09, /* Button */ 413 405 /* Usage Minimum */ 0x19, 0x01, /* Button 1 */ … … 421 413 /* Report Size */ 0x75, 0x03, /* 3 (padding bits) */ 422 414 /* Input */ 0x81, 0x03, /* Constant, Value, Absolute, Bit field */ 415 /* Report Size */ 0x75, 0x08, /* 8 (padding byte) */ 416 /* Report Count */ 0x95, 0x01, /* 1 */ 417 /* Input */ 0x81, 0x03, /* Constant, Value, Absolute, Bit field */ 418 /* Usage Page */ 0x05, 0x01, /* Generic Desktop */ 419 /* Usage */ 0x09, 0x30, /* X */ 420 /* Usage */ 0x09, 0x31, /* Y */ 421 /* Logical Minimum */ 0x15, 0x00, /* 0 */ 422 /* Logical Maximum */ 0x26, 0xFF,0x7F,/* 0x7fff */ 423 /* Physical Minimum */ 0x35, 0x00, /* 0 */ 424 /* Physical Maximum */ 0x46, 0xFF,0x7F,/* 0x7fff */ 425 /* Report Size */ 0x75, 0x10, /* 16 */ 426 /* Report Count */ 0x95, 0x02, /* 2 */ 427 /* Input */ 0x81, 0x02, /* Data, Value, Absolute, Bit field */ 423 428 /* End Collection */ 0xC0, 424 429 /* End Collection */ 0xC0, … … 1179 1184 case USBHIDMODE_ABSOLUTE: 1180 1185 pReport->t.fButtons = pAccumulated->u.Absolute.fButtons; 1186 pReport->t.padding = 0; 1181 1187 pReport->t.x = pAccumulated->u.Absolute.x; 1182 1188 pReport->t.y = pAccumulated->u.Absolute.y; … … 2255 2261 return PDMUsbHlpVMSetError(pUsbIns, rc, RT_SRC_POS, 2256 2262 N_("Invalid HID device mode")); 2263 2264 LogRelFlow(("usbHidConstruct/#%u: mode '%s'\n", iInstance, szMode)); 2257 2265 2258 2266 pThis->Lun0.IBase.pfnQueryInterface = usbHidMouseQueryInterface;
Note:
See TracChangeset
for help on using the changeset viewer.