Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)
 Fixes Bugzilla #267.
  • Loading branch information
icculus committed Oct 29, 2006
1 parent 5bcee32 commit c63b333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/win32/SDL_mmjoystick.c
Expand Up @@ -162,7 +162,7 @@ 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 c63b333

Please sign in to comment.