mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 17:16:19 -05:00
Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)
Fixes Bugzilla #267.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user