1
0
Fork 0

Fixed bug with joystick always going down.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@258
This commit is contained in:
Sjoerd van der Berg 2002-09-04 21:49:22 +00:00
parent b5d4c88ad7
commit 6470f16447

View file

@ -60,12 +60,12 @@ static Bit8u read_p201(Bit32u port) {
static void write_p201(Bit32u port,Bit8u val) {
if (stick[0].enabled) {
stick[0].xcount=(Bitu)(stick[0].xpos*RANGE+RANGE*2);
stick[0].ycount=(Bitu)(stick[0].ypos*RANGE+RANGE*2);
stick[0].xcount=(Bitu)((stick[0].xpos*RANGE)+RANGE);
stick[0].ycount=(Bitu)((stick[0].ypos*RANGE)+RANGE);
}
if (stick[1].enabled) {
stick[1].xcount=(Bitu)(stick[1].xpos*RANGE+RANGE*2);
stick[1].ycount=(Bitu)(stick[1].ypos*RANGE+RANGE*2);
stick[1].xcount=(Bitu)((stick[1].xpos*RANGE)+RANGE);
stick[1].ycount=(Bitu)((stick[1].ypos*RANGE)+RANGE);
}
}