Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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 c63b3333a8d080b367ed29e71150438c1baf4834
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/win32/SDL_mmjoystick.c
@@ -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) {

0 comments on commit c63b333

Please sign in to comment.