From: sparky4 Date: Sun, 12 Jul 2015 18:22:39 +0000 (-0500) Subject: modified: 16.exe X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=634cab2f93fbfecbfd035e1aadd6b396c5ad73a6;p=16.git modified: 16.exe modified: exmmtest.exe modified: inputest.exe modified: maptest.exe modified: src/inputest.c modified: src/lib/16_head.h modified: src/lib/16_in.c modified: src/lib/16_in.h --- diff --git a/16.exe b/16.exe index d407dac1..30dfc54d 100644 Binary files a/16.exe and b/16.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index 4bd6a747..0168bc74 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/inputest.exe b/inputest.exe index 2befbe06..4eac314b 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/maptest.exe b/maptest.exe index ed045368..f634cd39 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/src/inputest.c b/src/inputest.c index 5df1f39f..6fdf5567 100644 --- a/src/inputest.c +++ b/src/inputest.c @@ -23,7 +23,7 @@ input test */ #include "src/lib/16_in.h" - + void main(int argc, char *argv[]) { @@ -37,7 +37,8 @@ main(int argc, char *argv[]) { IN_ReadControl(0,&player); //printf("%u\n", IN_KeyDown(sc_Escape)); - //printf("%u\n", IN_qb(sc_Escape)); + //printf("%u\n", IN_qb(sc_Escape)); + clockdw++; } IN_Shutdown(); //printf("%u\n", in.Keyboard[sc_Escape]); diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 19e713b1..2bb380fe 100644 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -131,7 +131,8 @@ #define KEY_MENU (0x75) */ -static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */ +//static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */ +static dword clockdw=0; #define nil ((void *)0) diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 2878be77..4dd9aa0c 100644 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -371,7 +371,7 @@ INL_GetJoyDelta(word joy,int *dx,int *dy,boolean adaptive) { word x,y; dword time; - dword TimeCount = *clockdw; + dword TimeCount = /***/clockdw; JoystickDef *def; static dword lasttime; @@ -465,7 +465,7 @@ register word result; word IN_GetJoyButtonsDB(word joy) { - dword TimeCount = *clockdw; + dword TimeCount = /***/clockdw; dword lasttime; word result1,result2; @@ -1176,7 +1176,7 @@ IN_IsUserInput() boolean IN_UserInput(dword delay,boolean clear) { - dword TimeCount = *clockdw; + dword TimeCount = /***/clockdw; dword lasttime; lasttime = TimeCount; diff --git a/src/lib/16_in.h b/src/lib/16_in.h index 9a9c7685..fe621bc7 100644 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -251,7 +251,7 @@ typedef struct static word DemoOffset,DemoSize; #endif -extern dword far* clockdw; +extern dword /*far**/ clockdw; // Internal routines extern void interrupt INL_KeyService();