--- open-invaders-0.3.old/src/input.cc +++ open-invaders-0.3/src/input.cc @@ -72,7 +72,8 @@ keyreleased=false; }; - if((key[KEY_LCONTROL]||key[KEY_RCONTROL])&&key[KEY_C]) + if (((key[KEY_LCONTROL]||key[KEY_RCONTROL])&&key[KEY_C]) || + key [KEY_Q] || key [KEY_ESC]) { program_active=false; game_active=false; @@ -103,8 +104,11 @@ { posx=posx+2; }; - - if((key[keysdefined[4]]||joy[0].button[0].b)&&bulletposition.alive!=alive&&!in_process_of_fading&&!paused) + + if ((key [keysdefined [4]] || +key [KEY_LCONTROL] || key [KEY_SPACE] || +joy [0].button [0].b) && +bulletposition.alive != alive && !in_process_of_fading && !paused) { bulletposition.xpos=posx; bulletposition.ypos=526; --- open-invaders-0.3.old/src/intro.cc +++ open-invaders-0.3/src/intro.cc @@ -458,7 +458,9 @@ play_sample(move_sound,sfx_volume,128,1000,0); } - if(key[keysdefined[4]]||key[KEY_ENTER]||joy[0].button[0].b) + if (key [keysdefined [4]] || +key [KEY_LCONTROL] || key [KEY_SPACE] || +key [KEY_ENTER] || joy[0].button[0].b) { play_sample(select_sound,sfx_volume,128,1000,0);