Skip to content

Commit

Permalink
joyGetPosEx() was using the wrong variable for specifying a device; t…
Browse files Browse the repository at this point in the history
…his is

 corrected now. (thanks, Ondrej!)

Fixes Bugzilla #267.
  • Loading branch information
icculus committed Oct 29, 2006
1 parent daf7a5a commit 5837347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/win32/SDL_mmjoystick.c
Expand Up @@ -167,7 +167,7 @@ int SDL_SYS_JoystickInit(void)

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 ) {
Expand Down

0 comments on commit 5837347

Please sign in to comment.