From e7f3e596de2f235c37e3aeabe31b34c557b60673 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 26 Mar 2003 20:27:01 +0000 Subject: [PATCH] added killswitch Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@802 --- src/gui/sdlmain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index f7b2f6b3..bc8ad5ae 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -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); }