Completed adding new hotplug stubs for the joystick implementations

This commit is contained in:
Sam Lantinga 2012-11-26 22:27:49 -08:00
parent a8966c167e
commit c9f59a287d
9 changed files with 223 additions and 33 deletions

View file

@ -68,12 +68,10 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index)
joystick->nbuttons = 0;
[[SDLUIAccelerationDelegate sharedDelegate] startup];
return 0;
}
else {
} else {
SDL_SetError("No joystick available with that index");
return (-1);
}
}
/* Function to update the state of a joystick - called as a device poll.