VirtualBox

Changeset 95369 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 24, 2022 8:39:25 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt, Main/Console+Mouse: Make compatible with Qt6, and add some API change bits forgotten in previous change. bugref:9891

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r95364 r95369  
    22612261            if (   aPointingHID == PointingHIDType_USBMouse
    22622262                || aPointingHID == PointingHIDType_USBTablet
    2263                 || aPointingHID == PointingHIDType_USBMultiTouch)
     2263                || aPointingHID == PointingHIDType_USBMultiTouch
     2264                || aPointingHID == PointingHIDType_USBMultiTouchScreenPlusPad)
    22642265            {
    22652266                InsertConfigNode(pUsbDevices, "HidMouse", &pDev);
     
    22792280                InsertConfigString(pLunL1, "Driver",        "MainMouse");
    22802281            }
    2281             if (aPointingHID == PointingHIDType_USBMultiTouch)
     2282            if (   aPointingHID == PointingHIDType_USBMultiTouch
     2283                || aPointingHID == PointingHIDType_USBMultiTouchScreenPlusPad)
    22822284            {
    22832285                InsertConfigNode(pDev,     "1", &pInst);
     
    22852287
    22862288                InsertConfigString(pCfg,   "Mode", "multitouch");
     2289                InsertConfigNode(pInst,    "LUN#0", &pLunL0);
     2290                InsertConfigString(pLunL0, "Driver",        "MouseQueue");
     2291                InsertConfigNode(pLunL0,   "Config", &pCfg);
     2292                InsertConfigInteger(pCfg,  "QueueSize",            128);
     2293
     2294                InsertConfigNode(pLunL0,   "AttachedDriver", &pLunL1);
     2295                InsertConfigString(pLunL1, "Driver",        "MainMouse");
     2296            }
     2297            if (aPointingHID == PointingHIDType_USBMultiTouchScreenPlusPad)
     2298            {
     2299                InsertConfigNode(pDev,     "2", &pInst);
     2300                InsertConfigNode(pInst,    "Config", &pCfg);
     2301
     2302                InsertConfigString(pCfg,   "Mode", "touchpad");
    22872303                InsertConfigNode(pInst,    "LUN#0", &pLunL0);
    22882304                InsertConfigString(pLunL0, "Driver",        "MouseQueue");
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r95368 r95369  
    11921192
    11931193
    1194 /** Can we currently send absolute events to the guest? */
     1194/** Can we currently send multi-touch events (touchscreen variant) to the guest? */
    11951195bool Mouse::i_supportsTS(void)
    11961196{
     
    11991199    i_getDeviceCaps(NULL, NULL, &fTSDev, NULL);
    12001200    return fTSDev;
     1201}
     1202
     1203
     1204/** Can we currently send multi-touch events (touchpad variant) to the guest? */
     1205bool Mouse::i_supportsTP(void)
     1206{
     1207    bool fTPDev;
     1208
     1209    i_getDeviceCaps(NULL, NULL, NULL, &fTPDev);
     1210    return fTPDev;
    12011211}
    12021212
Note: See TracChangeset for help on using the changeset viewer.

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