Commit 876d68b4 authored by Ryan C. Gordon's avatar Ryan C. Gordon

joyGetPosEx() was using the wrong variable for specifying a device; this is

 corrected now. (thanks, Ondrej!)

Fixes Bugzilla #267.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402210
parent 239244f8
...@@ -167,7 +167,7 @@ int SDL_SYS_JoystickInit(void) ...@@ -167,7 +167,7 @@ int SDL_SYS_JoystickInit(void)
joyinfo.dwSize = sizeof(joyinfo); joyinfo.dwSize = sizeof(joyinfo);
joyinfo.dwFlags = JOY_RETURNALL; joyinfo.dwFlags = JOY_RETURNALL;
result = joyGetPosEx(SYS_JoystickID[i], &joyinfo); result = joyGetPosEx(i, &joyinfo);
if ( result == JOYERR_NOERROR ) { if ( result == JOYERR_NOERROR ) {
result = joyGetDevCaps(i, &joycaps, sizeof(joycaps)); result = joyGetDevCaps(i, &joycaps, sizeof(joycaps));
if ( result == JOYERR_NOERROR ) { 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