Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)
authorRyan C. Gordon <icculus@icculus.org>
Sun, 29 Oct 2006 03:39:13 +0000
changeset 20616051761b5934
parent 2060 866052b01ee5
child 2062 c9aa6bcb26f3
Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)

Fixes Bugzilla #267.
src/joystick/win32/SDL_mmjoystick.c
     1.1 --- a/src/joystick/win32/SDL_mmjoystick.c	Sat Oct 28 16:48:03 2006 +0000
     1.2 +++ b/src/joystick/win32/SDL_mmjoystick.c	Sun Oct 29 03:39:13 2006 +0000
     1.3 @@ -162,7 +162,7 @@
     1.4  
     1.5          joyinfo.dwSize = sizeof(joyinfo);
     1.6          joyinfo.dwFlags = JOY_RETURNALL;
     1.7 -        result = joyGetPosEx(SYS_JoystickID[i], &joyinfo);
     1.8 +        result = joyGetPosEx(i, &joyinfo);
     1.9          if (result == JOYERR_NOERROR) {
    1.10              result = joyGetDevCaps(i, &joycaps, sizeof(joycaps));
    1.11              if (result == JOYERR_NOERROR) {