VirtualBox

Changeset 47228 in vbox


Ignore:
Timestamp:
Jul 18, 2013 8:22:07 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87344
Message:

ConsoleImpl2: enable the multi-touch device in the guest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r47223 r47228  
    24192419                PointingHIDType_T aPointingHID;
    24202420                hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID);                  H();
    2421                 if (aPointingHID == PointingHIDType_USBMouse || aPointingHID == PointingHIDType_USBTablet)
     2421                if (   aPointingHID == PointingHIDType_USBMouse
     2422                    || aPointingHID == PointingHIDType_USBTablet)
    24222423                {
    24232424                    InsertConfigNode(pUsbDevices, "HidMouse", &pDev);
     
    24252426                    InsertConfigNode(pInst,    "Config", &pCfg);
    24262427
    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");
    24352460                    InsertConfigNode(pInst,    "LUN#0", &pLunL0);
    24362461                    InsertConfigString(pLunL0, "Driver",        "MouseQueue");
Note: See TracChangeset for help on using the changeset viewer.

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