Mercurial > sdl-ios-xcode
changeset 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 | a10bddfdc40f |
children | 9dcceea84416 |
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 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 ) {