summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2006-09-18 12:13:40 +0000
committerSimon Howard2006-09-18 12:13:40 +0000
commit47ae7506fc1e286cbce74f1126fa016f31d71996 (patch)
treee33fb55bbefea7dff8980e0005776bb6682c256d /textscreen
parentb65c4617a657cf2cc5848efcc8753bcc6f67fdca (diff)
downloadchocolate-doom-47ae7506fc1e286cbce74f1126fa016f31d71996.tar.gz
chocolate-doom-47ae7506fc1e286cbce74f1126fa016f31d71996.tar.bz2
chocolate-doom-47ae7506fc1e286cbce74f1126fa016f31d71996.zip
Repeat key presses when the key is held down - thanks to Mad_Mac for this
one :-) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 613
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_main.c5
1 files changed, 5 insertions, 0 deletions
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;
}