Changeset 47246 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Jul 19, 2013 9:43:01 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r47228 r47246 1269 1269 InsertConfigInteger(pCfg, "Object", (uintptr_t)pKeyboard); 1270 1270 1271 InsertConfigNode(pInst, "LUN#1", &pLunL0);1272 InsertConfigString(pLunL0, "Driver", "MouseQueue");1273 InsertConfigNode(pLunL0, "Config", &pCfg);1274 InsertConfigInteger(pCfg, "QueueSize", 128);1275 1276 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1);1277 InsertConfigString(pLunL1, "Driver", "MainMouse");1278 InsertConfigNode(pLunL1, "Config", &pCfg);1279 1271 Mouse *pMouse = mMouse; 1280 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 1272 PointingHIDType_T aPointingHID; 1273 hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID); H(); 1274 if ( aPointingHID == PointingHIDType_PS2Mouse 1275 || aPointingHID == PointingHIDType_ComboMouse) 1276 { 1277 InsertConfigNode(pInst, "LUN#1", &pLunL0); 1278 InsertConfigString(pLunL0, "Driver", "MouseQueue"); 1279 InsertConfigNode(pLunL0, "Config", &pCfg); 1280 InsertConfigInteger(pCfg, "QueueSize", 128); 1281 1282 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); 1283 InsertConfigString(pLunL1, "Driver", "MainMouse"); 1284 InsertConfigNode(pLunL1, "Config", &pCfg); 1285 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 1286 } 1281 1287 1282 1288 /* … … 2417 2423 2418 2424 /* Virtual USB Mouse/Tablet */ 2419 PointingHIDType_T aPointingHID;2420 hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID); H();2421 2425 if ( aPointingHID == PointingHIDType_USBMouse 2422 || aPointingHID == PointingHIDType_USBTablet) 2426 || aPointingHID == PointingHIDType_ComboMouse 2427 || aPointingHID == PointingHIDType_USBTablet 2428 || aPointingHID == PointingHIDType_USBMultiTouch) 2423 2429 { 2424 2430 InsertConfigNode(pUsbDevices, "HidMouse", &pDev); … … 2435 2441 InsertConfigString(pLunL1, "Driver", "MainMouse"); 2436 2442 InsertConfigNode(pLunL1, "Config", &pCfg); 2437 pMouse = mMouse;2438 2443 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2439 2444 } 2440 if (aPointingHID == PointingHIDType_USBTablet) 2445 if ( aPointingHID == PointingHIDType_USBTablet 2446 || aPointingHID == PointingHIDType_USBMultiTouch) 2441 2447 { 2442 2448 InsertConfigNode(pDev, "1", &pInst); … … 2452 2458 InsertConfigString(pLunL1, "Driver", "MainMouse"); 2453 2459 InsertConfigNode(pLunL1, "Config", &pCfg); 2454 pMouse = mMouse;2455 2460 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2461 } 2462 if (aPointingHID == PointingHIDType_USBMultiTouch) 2463 { 2456 2464 InsertConfigNode(pDev, "2", &pInst); 2457 2465 InsertConfigNode(pInst, "Config", &pCfg); … … 2466 2474 InsertConfigString(pLunL1, "Driver", "MainMouse"); 2467 2475 InsertConfigNode(pLunL1, "Config", &pCfg); 2468 pMouse = mMouse;2469 2476 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2470 2477 }
Note:
See TracChangeset
for help on using the changeset viewer.