Changeset 47228 in vbox
- Timestamp:
- Jul 18, 2013 8:22:07 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87344
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r47223 r47228 2419 2419 PointingHIDType_T aPointingHID; 2420 2420 hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID); H(); 2421 if (aPointingHID == PointingHIDType_USBMouse || aPointingHID == PointingHIDType_USBTablet) 2421 if ( aPointingHID == PointingHIDType_USBMouse 2422 || aPointingHID == PointingHIDType_USBTablet) 2422 2423 { 2423 2424 InsertConfigNode(pUsbDevices, "HidMouse", &pDev); … … 2425 2426 InsertConfigNode(pInst, "Config", &pCfg); 2426 2427 2427 if (aPointingHID == PointingHIDType_USBTablet) 2428 { 2429 InsertConfigString(pCfg, "Mode", "absolute"); 2430 } 2431 else 2432 { 2433 InsertConfigString(pCfg, "Mode", "relative"); 2434 } 2428 InsertConfigString(pCfg, "Mode", "relative"); 2429 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2430 InsertConfigString(pLunL0, "Driver", "MouseQueue"); 2431 InsertConfigNode(pLunL0, "Config", &pCfg); 2432 InsertConfigInteger(pCfg, "QueueSize", 128); 2433 2434 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); 2435 InsertConfigString(pLunL1, "Driver", "MainMouse"); 2436 InsertConfigNode(pLunL1, "Config", &pCfg); 2437 pMouse = mMouse; 2438 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2439 } 2440 if (aPointingHID == PointingHIDType_USBTablet) 2441 { 2442 InsertConfigNode(pDev, "1", &pInst); 2443 InsertConfigNode(pInst, "Config", &pCfg); 2444 2445 InsertConfigString(pCfg, "Mode", "absolute"); 2446 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2447 InsertConfigString(pLunL0, "Driver", "MouseQueue"); 2448 InsertConfigNode(pLunL0, "Config", &pCfg); 2449 InsertConfigInteger(pCfg, "QueueSize", 128); 2450 2451 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); 2452 InsertConfigString(pLunL1, "Driver", "MainMouse"); 2453 InsertConfigNode(pLunL1, "Config", &pCfg); 2454 pMouse = mMouse; 2455 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2456 InsertConfigNode(pDev, "2", &pInst); 2457 InsertConfigNode(pInst, "Config", &pCfg); 2458 2459 InsertConfigString(pCfg, "Mode", "multitouch"); 2435 2460 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2436 2461 InsertConfigString(pLunL0, "Driver", "MouseQueue");
Note:
See TracChangeset
for help on using the changeset viewer.