X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=4a31bcd6539140624d9e8f0c25f1f7523dc40fc7;hb=e5804efb99033c96d71c37ce89f60e1ee23b7004;hp=d5f9963bd00a7a658b0a2029afa852d1c03a38e0;hpb=c75edc652f52ce1f3b7a974dcdcfa8ca41822e47;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index d5f9963b..4a31bcd6 100644 --- a/src/events.c +++ b/src/events.c @@ -585,7 +585,7 @@ void HandleWheelEvent(WheelEvent *event) event->y < 0 ? MB_WHEEL_DOWN : event->y > 0 ? MB_WHEEL_UP : 0); -#if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX) +#if defined(PLATFORM_WINDOWS) || defined(PLATFORM_MAC) // accelerated mouse wheel available on Mac and Windows wheel_steps = (event->x ? ABS(event->x) : ABS(event->y)); #else @@ -2335,6 +2335,14 @@ void HandleKey(Key key, int key_status) if (HandleGadgetsKeyInput(key)) return; // do not handle already processed keys again + // special case: on "space" key, either continue playing or go to main menu + if (game_status == GAME_MODE_SCORES && key == KSYM_space) + { + HandleHallOfFame(0, 0, 0, 0, MB_MENU_CONTINUE); + + return; + } + switch (game_status) { case GAME_MODE_PSEUDO_TYPENAME: