diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-26 21:09:45 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-26 21:09:45 +0000 |
commit | 36afa75c11b66fd9547f67819edb35388694adfa (patch) | |
tree | 4600cf534176275660023457a5dc9b65e53c1168 /src/game.cpp | |
parent | e1a160b243717b4e5acae42f1cd27aad73d47d95 (diff) | |
download | mana-client-36afa75c11b66fd9547f67819edb35388694adfa.tar.gz mana-client-36afa75c11b66fd9547f67819edb35388694adfa.tar.bz2 mana-client-36afa75c11b66fd9547f67819edb35388694adfa.tar.xz mana-client-36afa75c11b66fd9547f67819edb35388694adfa.zip |
Auto detect keyboard WIN32
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
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]) { |