From 9e89f7fa9df8de0c4b237e3f897809a1a32720bb Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 13 Jul 2017 16:04:34 -0400 Subject: [PATCH] tfv: enable keyboard auto-repeat in SDL --- gr-sim/gr-sim.c | 2 ++ gr-sim/tfv.c | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gr-sim/gr-sim.c b/gr-sim/gr-sim.c index 70a089b2..f98c1ae0 100644 --- a/gr-sim/gr-sim.c +++ b/gr-sim/gr-sim.c @@ -377,6 +377,8 @@ int grsim_init(void) { return -1; } + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); + /* Init screen */ for(x=0x400;x<0x800;x++) ram[x]=0; diff --git a/gr-sim/tfv.c b/gr-sim/tfv.c index 8b4614c2..b6b6e166 100644 --- a/gr-sim/tfv.c +++ b/gr-sim/tfv.c @@ -407,6 +407,7 @@ static void show_map(void) { * * EXPERIENCE: 0 * * * NEXT LEVEL: 16 * * * * +* * MONEY: $1 * * * TIME: 0:00 * ****************************************** Inc level at 4, so 64 levels @@ -571,12 +572,15 @@ static int do_battle(void) { 1 BEACH LANDING GR/\ASS FORREST -2 BEACH GRASS GR/\ASS FORREST +2 BEACH GRASS COLLEGE FORREST -3 BEACH BEACH COLLEGE BEACH +3 BEACH BEACH BEACH BEACH */ +/* Walk through bushes, beach water */ +/* Make landing a sprite? Stand behind things? */ + static int world_map(void) { int ch;