added killswitch
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@802
This commit is contained in:
parent
60f6a77081
commit
e7f3e596de
1 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,10 @@ static void GUI_ShutDown(Section * sec) {
|
|||
|
||||
}
|
||||
|
||||
static void KillSwitch(void){
|
||||
throw 1;
|
||||
}
|
||||
|
||||
static void GUI_StartUp(Section * sec) {
|
||||
MSG_Add("SDL_CONFIGFILE_HELP","SDL related options.\n");
|
||||
sec->AddDestroyFunction(&GUI_ShutDown);
|
||||
|
@ -260,6 +264,7 @@ static void GUI_StartUp(Section * sec) {
|
|||
SDL_EnableKeyRepeat(250,30);
|
||||
SDL_EnableUNICODE(1);
|
||||
/* Get some Keybinds */
|
||||
KEYBOARD_AddEvent(KBD_f9,KBD_MOD_CTRL,KillSwitch);
|
||||
KEYBOARD_AddEvent(KBD_f10,KBD_MOD_CTRL,CaptureMouse);
|
||||
KEYBOARD_AddEvent(KBD_enter,KBD_MOD_ALT,SwitchFullScreen);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue