# HG changeset patch # User Ryan C. Gordon # Date 1162093044 0 # Node ID 36f155ec813325b9cbb0965cc479b9883d77712e # Parent a10bddfdc40f904815189b73c509a69eb7ac8b17 joyGetPosEx() was using the wrong variable for specifying a device; this is corrected now. (thanks, Ondrej!) Fixes Bugzilla #267. diff -r a10bddfdc40f -r 36f155ec8133 src/joystick/win32/SDL_mmjoystick.c --- 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 ) {