diff src/joystick/win32/SDL_mmjoystick.c @ 3886:36f155ec8133 SDL-1.2

joyGetPosEx() was using the wrong variable for specifying a device; this is corrected now. (thanks, Ondrej!) Fixes Bugzilla #267.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 29 Oct 2006 03:37:24 +0000
parents 5e86e34453d4
children 209a3ef8a328
line wrap: on
line diff
--- a/src/joystick/win32/SDL_mmjoystick.c	Sun Oct 29 02:46:42 2006 +0000
+++ b/src/joystick/win32/SDL_mmjoystick.c	Sun Oct 29 03:37:24 2006 +0000
@@ -167,7 +167,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 ) {