changeset 2061:6051761b5934

Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!) Fixes Bugzilla #267.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 29 Oct 2006 03:39:13 +0000
parents 866052b01ee5
children c9aa6bcb26f3
files src/joystick/win32/SDL_mmjoystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/win32/SDL_mmjoystick.c	Sat Oct 28 16:48:03 2006 +0000
+++ b/src/joystick/win32/SDL_mmjoystick.c	Sun Oct 29 03:39:13 2006 +0000
@@ -162,7 +162,7 @@
 
         joyinfo.dwSize = sizeof(joyinfo);
         joyinfo.dwFlags = JOY_RETURNALL;
-        result = joyGetPosEx(SYS_JoystickID[i], &joyinfo);
+        result = joyGetPosEx(i, &joyinfo);
         if (result == JOYERR_NOERROR) {
             result = joyGetDevCaps(i, &joycaps, sizeof(joycaps));
             if (result == JOYERR_NOERROR) {