VirtualBox

Changeset 6437 in vbox


Ignore:
Timestamp:
Jan 22, 2008 9:58:43 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27405
Message:

FE/SDL: added '-acpiterm' switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r5999 r6437  
    166166static BOOL gfGuestCapsLockPressed = FALSE;
    167167static BOOL gfGuestScrollLockPressed = FALSE;
     168static BOOL gfACPITerm = FALSE;
    168169static int  gcGuestNumLockAdaptions = 2;
    169170static int  gcGuestCapsLockAdaptions = 2;
     
    639640             "  -detecthostkey           Get the hostkey identifier and modifier state\n"
    640641             "  -hostkey <key> {<key2>} <mod> Set the host key to the values obtained using -detecthostkey\n"
     642             "  -acpiterm                Send an ACPI power button event when closing the window\n"
    641643#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) /** @todo UNIXISH_TAP stuff out of main and up to Config.kmk! */
    642644             "  -tapdev<1-N> <dev>       Use existing persistent TAP device with the given name\n"
     
    10981100            gfGrabOnMouseClick = FALSE;
    10991101        }
     1102        else if (strcmp(argv[curArg], "-acpiterm") == 0)
     1103        {
     1104            gfACPITerm = TRUE;
     1105        }
    11001106        else if (strcmp(argv[curArg], "-hda") == 0)
    11011107        {
     
    22042210            case SDL_QUIT:
    22052211            {
    2206                 goto leave;
     2212                if (!gfACPITerm)
     2213                    goto leave;
     2214                if (gConsole)
     2215                    gConsole->PowerButton();
     2216                gfACPITerm = false; /* don't try a second time */
    22072217                break;
    22082218            }
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