X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.c;h=c543caf99a958a7d4a484c5c0444ce67bfb16954;hb=18e7c24f9c024dedbc1854c5258530abf5ddd4be;hp=f4d90dbb13907ae8445bc75aa717b8bc3280125b;hpb=62a51803dc18b07a6d1c298220c2aaf553c802e7;p=16.git diff --git a/src/lib/16_in.c b/src/lib/16_in.c index f4d90dbb..c543caf9 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -169,6 +169,7 @@ static Direction DirTable[] = // Quick lookup for total direction static void (*INL_KeyHook)(void); static void interrupt (*OldKeyVect)(void); static char *ParmStringsIN[] = {"nojoys","nomouse",nil}; +static void INL_StartKbd(void); // Internal routines @@ -503,7 +504,7 @@ IN_GetJoyButtonsDB(word joy) // /////////////////////////////////////////////////////////////////////////// static void -INL_StartKbd(global_game_variables_t *gvar) +INL_StartKbd() { INL_KeyHook = NULL; // Clear key hook @@ -680,7 +681,7 @@ IN_Startup(global_game_variables_t *gvar) } } - INL_StartKbd(gvar); + INL_StartKbd(); gvar->in.MousePresent = checkmouse? INL_StartMouse() : false; for (i = 0;i < MaxJoys;i++) @@ -1183,8 +1184,13 @@ boolean IN_CheckAck (global_game_variables_t *gvar) // // see if something has been pressed // - if (inst.LastScan) - return true; + if(!gvar->in.IN_Started) + getch(); + else + { + if (inst.LastScan) + return true; + } buttons = IN_JoyButtons () << 4; if (gvar->in.MousePresent)