VirtualBox

Changeset 89921 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 25, 2021 6:47:30 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145379
Message:

Main/Console: Correctly handle mouse and keyboard type of None, which in principle was always allowed but still added the hardware.

Frontends/VBoxManage: For modifyvm, allow configuring a VM to have no mouse and/or keyboard.
So far undocumented because it needs more testing, but should be safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r88363 r89921  
    21292129                        fEnableUsb = true;
    21302130                }
     2131                else if (!RTStrICmp(ValueUnion.psz, "none"))
     2132                {
     2133                    CHECK_ERROR(sessionMachine, COMSETTER(PointingHIDType)(PointingHIDType_None));
     2134                }
    21312135                else
    21322136                {
     
    21652169                {
    21662170                    CHECK_ERROR(sessionMachine, COMSETTER(KeyboardHIDType)(KeyboardHIDType_USBKeyboard));
     2171                    if (SUCCEEDED(rc))
     2172                        fEnableUsb = true;
     2173                }
     2174                else if (!RTStrICmp(ValueUnion.psz, "none"))
     2175                {
     2176                    CHECK_ERROR(sessionMachine, COMSETTER(KeyboardHIDType)(KeyboardHIDType_None));
    21672177                    if (SUCCEEDED(rc))
    21682178                        fEnableUsb = true;
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