From 36afa75c11b66fd9547f67819edb35388694adfa Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 26 Nov 2004 21:09:45 +0000 Subject: Auto detect keyboard WIN32 --- src/game.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 37f0a000..9d26add8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -229,16 +229,10 @@ void do_input() { action_time = false; //alert("","","","","",0,0); } - if(key[KEY_F12] && action_time==true) { - if(screen_mode==2) { - screen_mode = 1; - } else { - screen_mode = 2; - } - if(set_gfx_mode(screen_mode, 800, 600, 0, 0)) { - error(allegro_error); - } - action_time = false; + if(key[KEY_F10] && action_time==true) { + screen_mode = 1-(screen_mode-1)+1; + if(set_gfx_mode(screen_mode, 800, 600, 0, 0)) + error(allegro_error); } if(key[KEY_ENTER]) { -- cgit v1.2.3-70-g09d2