Commit 2ec5b5b3 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)

 Fixes Bugzilla #267.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402211
parent 05a29201
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment