From 68cbaa12b3308716b1cb6dac82b138da7d3cbe9c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 19 Mar 2021 10:45:00 -0400 Subject: help: Handle Esc and Enter --- diff --git a/src/help.c b/src/help.c index 39db3cb..71c2f35 100644 --- a/src/help.c +++ b/src/help.c @@ -28,6 +28,8 @@ const char *_db_help_text = PACKAGE_NAME " version " PACKAGE_VERSION "\n" "\n" + "Press Esc or Enter to exit help\n" + "\n" "Evade the balls and get to the target! Dodge Balls is a simple " "puzzle game with obstacle courses consisting of moving balls.\n" "\n" @@ -167,6 +169,11 @@ db_help(void) text_src_rect.y = surface->h - text_src_rect.h; break; + case SDLK_ESCAPE: + case SDLK_RETURN: + case SDLK_KP_ENTER: + _db_help_quit = 1; + break; default: break; } -- cgit v0.9.1