mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Win32 joystick fix, ported from 1.2 branch r2887:2888. (Thanks, Ondrej!)
Fixes Bugzilla #267.
This commit is contained in:
parent
c91d18d6ad
commit
a08b4ac133
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user