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:
parent
4c8ce66c86
commit
602882eb78
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue