Fix argument for SDL_JoystickEventState

This commit is contained in:
kichikuou
2020-10-01 16:46:20 +09:00
parent 862f639e2e
commit 97b8bcb22a
+1 -1
View File
@@ -49,7 +49,7 @@ int joy_open(void) {
name=SDL_JoystickName(js);
joy_axes = SDL_JoystickNumAxes(js);
joy_buttons = SDL_JoystickNumButtons(js);
SDL_JoystickEventState(ENABLE_SDL);
SDL_JoystickEventState(SDL_ENABLE);
printf("SDL joystick '%s' axes %d buttons %d\n",name,joy_axes,joy_buttons);
return 1;
}