X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.c;h=ca5cf27729eb002c5360bc445e87ca31009628c2;hb=579be865a2f1d2a84d5295506f3e8ea9815d11af;hp=bdd3d0fe47554db0db169cbe3b761b4f2fec9e96;hpb=5af1604f7af6c1d1ab94299bfe6a4195b203a323;p=16.git diff --git a/src/lib/16_in.c b/src/lib/16_in.c index bdd3d0fe..ca5cf277 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -377,9 +377,9 @@ done: void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_variables_t *gvar) { word x,y; - word TimeCount = *clockw; +//00 word TimeCount = *clockw; JoystickDef *def; -static word lasttime; +//00static word lasttime; IN_GetJoyAbs(joy,&x,&y); def = gvar->in.JoyDefs + joy; @@ -440,7 +440,7 @@ static word lasttime; // *dy *= time; // } // } - lasttime = TimeCount; +//00 lasttime = TimeCount; } /////////////////////////////////////////////////////////////////////////// @@ -470,15 +470,15 @@ register word result; word IN_GetJoyButtonsDB(word joy) { - word TimeCount = *clockw; - word lasttime; +//00 word TimeCount = *clockw; +//00 word lasttime; word result1,result2; do { result1 = INL_GetJoyButtons(joy); - lasttime = TimeCount; - while(TimeCount == lasttime) +//00 lasttime = TimeCount; +//00 while(TimeCount == lasttime) //; result2 = INL_GetJoyButtons(joy); } while(result1 != result2);