|
Size: 915
Comment: SDL_JoystickOpened was removed from API. SDL_JoystickGetAttached is similar.
|
Size: 857
Comment: Changed to SDL_JoystickGetAttached.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| = SDL_JoystickOpened = Use this function to ^get the status of a specified joystick^. |
= SDL_JoystickGetAttached = Use this function to get the status of a specified joystick. |
| Line 13: | Line 13: |
| int SDL_JoystickOpened(int device_index) | SDL_bool SDL_JoystickGetAttached(SDL_Joystick* joystick) |
| Line 17: | Line 17: |
| ||'''device_index'''||^the index of the joystick to query^ / *the N'th joystick on the system*|| | ||'''joystick'''||the joystick to query|| |
| Line 20: | Line 20: |
| Returns 1 if the joystick has been opened, 0 if it has not, or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns SDL_TRUE if the joystick has been opened, SDL_FALSE if it has not; call [[SDL_GetError]]() for more information. |
DRAFT |
SDL_JoystickGetAttached
Use this function to get the status of a specified joystick.
Contents
Syntax
SDL_bool SDL_JoystickGetAttached(SDL_Joystick* joystick)
Function Parameters
joystick |
the joystick to query |
Return Value
Returns SDL_TRUE if the joystick has been opened, SDL_FALSE if it has not; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
