summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-17 15:35:00 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-17 15:35:00 (GMT)
commit295b3844664a9e37e11ef6a0131d0ca015e75c8c (patch)
tree43be8233a55e279278d5859f309a1258a1f033f2 /src/interface.c
parentb4a3b12d3d5b4d4c3493ad5d40b44034d4839c59 (diff)
downloadpowder-295b3844664a9e37e11ef6a0131d0ca015e75c8c.zip
powder-295b3844664a9e37e11ef6a0131d0ca015e75c8c.tar.gz
fixed keyrepeat api call
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c
index 6382ed0..9d3fcc8 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -3874,7 +3874,7 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
currentcommand2->command = mystrdup(error);
last_command2 = currentcommand2;
- SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+ //SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
cc = 0;
while(cc < 80){
fillrect(old_buf, -1, -1+cc, XRES+BARSIZE, 2, 0, 0, 0, 160-(cc*2));
@@ -3956,14 +3956,14 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
currentcommand->command = mystrdup(ed.str);
last_command = currentcommand;
free(old_buf);
- SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
+ //SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
return currentcommand->command;
}
if (sdl_key==SDLK_ESCAPE || sdl_key==SDLK_BACKQUOTE)
{
console_mode = 0;
free(old_buf);
- SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
+ //SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
return NULL;
}
if(sdl_key==SDLK_UP || sdl_key==SDLK_DOWN)
@@ -4000,7 +4000,7 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
}
console_mode = 0;
free(old_buf);
- SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
+ //SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL);
return NULL;
}