Skip to content

Commit

Permalink
minor update with keys q and esc
Browse files Browse the repository at this point in the history
Doesn't quit with q anymore
'End' key - quit without save
esc while playing - pause/resume
  • Loading branch information
Abir66 authored Jan 15, 2022
1 parent 16ab8cd commit 91961c0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions DX-BALL-1905066/iMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3586,12 +3586,13 @@ void iMouse(int button, int state, int mx, int my)
*/
void iKeyboard(unsigned char key)
{
//if(key == 'q')
//{
// exit(0);
//}

/*
if(key == 'q')
{
exit(0);
}
if(key == 'm' || key =='M')
{
ToggleMusic();
Expand Down Expand Up @@ -3631,7 +3632,7 @@ void iKeyboard(unsigned char key)
}
else if(scene == 4)
{
if(key == 'p')
if(key == 'p' || key==27)
{

if(!gameplayPause)
Expand Down

0 comments on commit 91961c0

Please sign in to comment.