Skip to content
Permalink
Browse files
joyGetPosEx() was using the wrong variable for specifying a device; t…
…his is

 corrected now. (thanks, Ondrej!)

Fixes Bugzilla #267.
  • Loading branch information
icculus committed Oct 29, 2006
1 parent daf7a5a commit 583734701aaf5291dc25c87512b62876e379589c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/win32/SDL_mmjoystick.c
@@ -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 ) {

0 comments on commit 5837347

Please sign in to comment.