1
0
Fork 0

Fixed counters for 2nd joystick movement.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@316
This commit is contained in:
Sjoerd van der Berg 2002-10-15 22:27:58 +00:00
parent 4c8ce66c86
commit 602882eb78

View file

@ -50,8 +50,8 @@ static Bit8u read_p201(Bit32u port) {
if (stick[0].button[1]) ret&=32;
}
if (stick[1].enabled) {
if (stick[1].xcount) stick[0].xcount--; else ret&=~4;
if (stick[1].ycount) stick[0].ycount--; else ret&=~8;
if (stick[1].xcount) stick[1].xcount--; else ret&=~4;
if (stick[1].ycount) stick[1].ycount--; else ret&=~8;
if (stick[1].button[0]) ret&=64;
if (stick[1].button[1]) ret&=128;
}