include/SDL_gamecontroller.h
changeset 6871 bd681c870ccf
parent 6795 f445268492a7
child 6873 f042ae287155
equal deleted inserted replaced
6870:31dee5110b4d 6871:bd681c870ccf
   111 
   111 
   112 /**
   112 /**
   113  *  Is the joystick on this index supported by the game controller interface?
   113  *  Is the joystick on this index supported by the game controller interface?
   114  *		returns 1 if supported, 0 otherwise.
   114  *		returns 1 if supported, 0 otherwise.
   115  */
   115  */
   116 extern DECLSPEC int SDLCALL SDL_IsGameController(int joystick_index);
   116 extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index);
   117 
   117 
   118 
   118 
   119 /**
   119 /**
   120  *  Get the implementation dependent name of a game controller.
   120  *  Get the implementation dependent name of a game controller.
   121  *  This can be called before any controllers are opened.
   121  *  This can be called before any controllers are opened.
   139 extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController * gamecontroller);
   139 extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController * gamecontroller);
   140 	
   140 	
   141 /**
   141 /**
   142  *  Returns 1 if the controller has been opened and currently connected, or 0 if it has not.
   142  *  Returns 1 if the controller has been opened and currently connected, or 0 if it has not.
   143  */
   143  */
   144 extern DECLSPEC int SDLCALL SDL_GameControllerGetAttached(SDL_GameController * gamecontroller);
   144 extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerGetAttached(SDL_GameController * gamecontroller);
   145 
   145 
   146 /**
   146 /**
   147  *  Get the underlying joystick object used by a controller
   147  *  Get the underlying joystick object used by a controller
   148  */
   148  */
   149 extern DECLSPEC SDL_Joystick *SDLCALL SDL_GameControllerGetJoystick(SDL_GameController * gamecontroller);
   149 extern DECLSPEC SDL_Joystick *SDLCALL SDL_GameControllerGetJoystick(SDL_GameController * gamecontroller);