Changeset 6437 in vbox
- Timestamp:
- Jan 22, 2008 9:58:43 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27405
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r5999 r6437 166 166 static BOOL gfGuestCapsLockPressed = FALSE; 167 167 static BOOL gfGuestScrollLockPressed = FALSE; 168 static BOOL gfACPITerm = FALSE; 168 169 static int gcGuestNumLockAdaptions = 2; 169 170 static int gcGuestCapsLockAdaptions = 2; … … 639 640 " -detecthostkey Get the hostkey identifier and modifier state\n" 640 641 " -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" 641 643 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) /** @todo UNIXISH_TAP stuff out of main and up to Config.kmk! */ 642 644 " -tapdev<1-N> <dev> Use existing persistent TAP device with the given name\n" … … 1098 1100 gfGrabOnMouseClick = FALSE; 1099 1101 } 1102 else if (strcmp(argv[curArg], "-acpiterm") == 0) 1103 { 1104 gfACPITerm = TRUE; 1105 } 1100 1106 else if (strcmp(argv[curArg], "-hda") == 0) 1101 1107 { … … 2204 2210 case SDL_QUIT: 2205 2211 { 2206 goto leave; 2212 if (!gfACPITerm) 2213 goto leave; 2214 if (gConsole) 2215 gConsole->PowerButton(); 2216 gfACPITerm = false; /* don't try a second time */ 2207 2217 break; 2208 2218 }
Note:
See TracChangeset
for help on using the changeset viewer.