mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 02:38:27 +00:00
SDL_CloseJoystick() should return void, not int
This commit is contained in:
parent
9ff15e5382
commit
e65e2c8ed7
3 changed files with 5 additions and 8 deletions
|
@ -970,14 +970,12 @@ extern DECLSPEC int SDLCALL SDL_SendJoystickEffect(SDL_Joystick *joystick, const
|
|||
* Close a joystick previously opened with SDL_OpenJoystick().
|
||||
*
|
||||
* \param joystick The joystick device to close
|
||||
* \returns 0 on success or a negative error code on failure; call
|
||||
* SDL_GetError() for more information.
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*
|
||||
* \sa SDL_OpenJoystick
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_CloseJoystick(SDL_Joystick *joystick);
|
||||
extern DECLSPEC void SDLCALL SDL_CloseJoystick(SDL_Joystick *joystick);
|
||||
|
||||
/**
|
||||
* Get the battery level of a joystick as SDL_JoystickPowerLevel.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue