mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
joyGetPosEx() was using the wrong variable for specifying a device; this is
corrected now. (thanks, Ondrej!) Fixes Bugzilla #267. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user