From 0aeb42c9cfe2c02cbc553ac04b44b2c68a49e376 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 21 Jan 2004 19:21:17 +0000 Subject: [PATCH] Fix 5th joystick in windows port --- zsnes/src/win/winlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 04184174..2924abf4 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -887,7 +887,7 @@ BOOL FAR PASCAL InitJoystickInput(LPCDIDEVICEINSTANCE pdinst, LPVOID pvRef) LPDIRECTINPUT8 pdi = (LPDIRECTINPUT8)pvRef; GUID DeviceGuid = pdinst->guidInstance; - if (CurrentJoy>3) + if (CurrentJoy>4) return DIENUM_CONTINUE; // Create the DirectInput joystick device. @@ -1196,7 +1196,7 @@ void TestJoy() { int i; - for(i=0;i<4;i++) + for(i=0;i<5;i++) { if (JoystickInput[i]) {