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
This commit is contained in:
parent
239244f867
commit
876d68b4c9
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue