Changeset 47360 in vbox for trunk/src/VBox
- Timestamp:
- Jul 24, 2013 3:46:46 AM (12 years ago)
- Location:
- trunk/src/VBox/Devices/Input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp
r47259 r47360 92 92 struct 93 93 { 94 boolfContact;94 uint32_t fContact; 95 95 uint32_t x; 96 96 uint32_t y; -
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r47331 r47360 141 141 struct 142 142 { 143 boolfContact;143 uint32_t fContact; 144 144 uint32_t x; 145 145 uint32_t y; … … 899 899 { 900 900 case USBHIDMODE_ABSOLUTE: 901 {902 901 pReport->t.fButtons = pAccumulated->u.Absolute.fButtons; 903 902 pReport->t.x = pAccumulated->u.Absolute.x; … … 909 908 cbCopy)); 910 909 break; 911 }912 910 case USBHIDMODE_RELATIVE: 913 {914 911 pReport->m.fButtons = pAccumulated->u.Relative.fButtons; 915 912 pReport->m.dx = clamp_i8(pAccumulated->u.Relative.dx); … … 922 919 pReport->m.fButtons, cbCopy)); 923 920 break; 924 }925 921 case USBHIDMODE_MULTI_TOUCH: 926 {927 922 pReport->mt.idReport = REPORTID_MOUSE; 928 923 pReport->mt.cContact = pAccumulated->u.MultiTouch.cContact; … … 931 926 pReport->mt.fContact = pAccumulated->u.MultiTouch.fContact; 932 927 933 cbCopy = sizeof(pReport-> t);928 cbCopy = sizeof(pReport->mt); 934 929 LogRel3(("Multi-touch event, x=%u, y=%u, report size %d\n", 935 930 pReport->mt.x, pReport->mt.y, cbCopy)); 936 931 break; 937 }938 932 } 939 933 … … 1222 1216 { 1223 1217 case USBHIDMODE_ABSOLUTE: 1224 {1225 1218 cbDesc = sizeof(g_UsbHidTIfHidDesc); 1226 1219 pDesc = (const uint8_t *)&g_UsbHidTIfHidDesc; 1227 1220 break; 1228 }1229 1221 case USBHIDMODE_RELATIVE: 1230 {1231 1222 cbDesc = sizeof(g_UsbHidMIfHidDesc); 1232 1223 pDesc = (const uint8_t *)&g_UsbHidMIfHidDesc; 1233 1224 break; 1234 }1235 1225 case USBHIDMODE_MULTI_TOUCH: 1236 {1237 1226 cbDesc = sizeof(g_UsbHidMTIfHidDesc); 1238 1227 pDesc = (const uint8_t *)&g_UsbHidMTIfHidDesc; 1239 1228 break; 1240 }1241 1229 } 1242 1230 /* Returned data is written after the setup message. */
Note:
See TracChangeset
for help on using the changeset viewer.