Completed adding new hotplug stubs for the joystick implementations
This commit is contained in:
parent
a8966c167e
commit
c9f59a287d
9 changed files with 223 additions and 33 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue