fix a couple of serious issues molgrum reported.

fix dedicated server to integrate inside fteqcc.
fix bug with jump being released.
fix fteqcc always using 32bit output.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5086 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2017-03-30 18:37:16 +00:00
parent 492feafd1d
commit c46f6a3a53
12 changed files with 158 additions and 73 deletions

View file

@ -1838,7 +1838,7 @@ void INS_Commands (void)
K_AUX9, //left trigger
K_AUX10 //right trigger
};
static const int dinputjbuttons[32] =
static const int mmjbuttons[32] =
{
K_JOY1,
K_JOY2,
@ -1908,10 +1908,10 @@ void INS_Commands (void)
for (i=0 ; i < joy->numbuttons ; i++)
{
if ( (buttonstate & (1<<i)) && !(joy->oldbuttonstate & (1<<i)) )
Key_Event (joy->devid, dinputjbuttons[i], 0, true);
Key_Event (joy->devid, mmjbuttons[i], 0, true);
if ( !(buttonstate & (1<<i)) && (joy->oldbuttonstate & (1<<i)) )
Key_Event (joy->devid, dinputjbuttons[i], 0, false);
Key_Event (joy->devid, mmjbuttons[i], 0, false);
}
}
joy->oldbuttonstate = buttonstate;