From 602882eb7898717ee289d78839301ef01e217cac Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 15 Oct 2002 22:27:58 +0000 Subject: [PATCH] Fixed counters for 2nd joystick movement. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@316 --- src/hardware/joystick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/joystick.cpp b/src/hardware/joystick.cpp index 3b6507dc..a5bd7f88 100644 --- a/src/hardware/joystick.cpp +++ b/src/hardware/joystick.cpp @@ -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; }