From 47ae7506fc1e286cbce74f1126fa016f31d71996 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 18 Sep 2006 12:13:40 +0000 Subject: Repeat key presses when the key is held down - thanks to Mad_Mac for this one :-) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 613 --- textscreen/txt_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'textscreen') diff --git a/textscreen/txt_main.c b/textscreen/txt_main.c index 5ecd590b..f580d942 100644 --- a/textscreen/txt_main.c +++ b/textscreen/txt_main.c @@ -88,6 +88,11 @@ int TXT_Init(void) SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); + // Repeat key presses so we can hold down arrows to scroll down the + // menu, for example. This is what setup.exe does. + + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); + return 1; } -- cgit v1.2.3