X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=fc6140fc84a0c959d5eaaeb5966acdd1c3fa2d95;hb=c9433eab5c4317ed4f89164b386a7d33562e29be;hp=66e5ec642fd6fa4c88453257e7a22fd5fbe4f430;hpb=5361c043c5668c9801b4682e0691d34ec428545f;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index 66e5ec64..fc6140fc 100644 --- a/src/events.c +++ b/src/events.c @@ -1,7 +1,7 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-2001 Artsoft Entertainment * +* (c) 1995-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -584,11 +584,15 @@ void HandleKey(Key key, int key_status) case KSYM_Page_Up: if (game_status == CHOOSELEVEL) HandleChooseLevel(0,0, 0,-SCR_FIELDY, MB_MENU_MARK); + else if (game_status == SETUP) + HandleSetupScreen(0,0, 0,-SCR_FIELDY, MB_MENU_MARK); break; case KSYM_Page_Down: if (game_status == CHOOSELEVEL) HandleChooseLevel(0,0, 0,SCR_FIELDY, MB_MENU_MARK); + else if (game_status == SETUP) + HandleSetupScreen(0,0, 0,SCR_FIELDY, MB_MENU_MARK); break; #ifdef DEBUG @@ -850,11 +854,11 @@ void HandleJoystick() !DelayReached(&joystickmove_delay, GADGET_FRAME_DELAY)) newbutton = dx = dy = 0; - if (game_status==MAINMENU) + if (game_status == MAINMENU) HandleMainMenu(0,0,dx,dy,newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); - else if (game_status==CHOOSELEVEL) + else if (game_status == CHOOSELEVEL) HandleChooseLevel(0,0,dx,dy,newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); - else if (game_status==SETUP) + else if (game_status == SETUP) HandleSetupScreen(0,0,dx,dy,newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); break; }