src/joystick/SDL_joystick_c.h
changeset 11201 813a8510bd0c
parent 10737 3406a0f8b041
child 11581 49393a9dffe4
     1.1 --- a/src/joystick/SDL_joystick_c.h	Wed Aug 09 11:58:38 2017 -0700
     1.2 +++ b/src/joystick/SDL_joystick_c.h	Wed Aug 09 11:59:29 2017 -0700
     1.3 @@ -28,6 +28,8 @@
     1.4  extern void SDL_JoystickQuit(void);
     1.5  
     1.6  /* Initialization and shutdown functions */
     1.7 +extern int SDL_GameControllerInitMappings(void);
     1.8 +extern void SDL_GameControllerQuitMappings(void);
     1.9  extern int SDL_GameControllerInit(void);
    1.10  extern void SDL_GameControllerQuit(void);
    1.11  
    1.12 @@ -35,6 +37,15 @@
    1.13  extern void SDL_LockJoystickList(void);
    1.14  extern void SDL_UnlockJoystickList(void);
    1.15  
    1.16 +/* Function to extract information from an SDL joystick GUID */
    1.17 +extern void SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version);
    1.18 +
    1.19 +/* Function to return whether a joystick name and GUID is a game controller  */
    1.20 +extern SDL_bool SDL_IsGameControllerNameAndGUID(const char *name, SDL_JoystickGUID guid);
    1.21 +
    1.22 +/* Function to return whether a game controller should be ignored */
    1.23 +extern SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid);
    1.24 +
    1.25  /* Internal event queueing functions */
    1.26  extern void SDL_PrivateJoystickAdded(int device_index);
    1.27  extern void SDL_PrivateJoystickRemoved(SDL_JoystickID device_instance);