include/SDL_joystick.h
changeset 6974 11a03a79dfe8
parent 6949 4de584a3a027
child 7191 75360622e65f
equal deleted inserted replaced
6973:ae30ec97694a 6974:11a03a79dfe8
    65 /* A structure that encodes the stable unique id for a joystick device */
    65 /* A structure that encodes the stable unique id for a joystick device */
    66 typedef struct {
    66 typedef struct {
    67 	Uint8 data[16];
    67 	Uint8 data[16];
    68 } SDL_JoystickGUID;
    68 } SDL_JoystickGUID;
    69 
    69 
    70 typedef Uint32 SDL_JoystickID;
    70 typedef Sint32 SDL_JoystickID;
    71 
    71 
    72 
    72 
    73 /* Function prototypes */
    73 /* Function prototypes */
    74 /**
    74 /**
    75  *  Count the number of joysticks attached to the system right now
    75  *  Count the number of joysticks attached to the system right now
   124  *  Returns SDL_TRUE if the joystick has been opened and currently connected, or SDL_FALSE if it has not.
   124  *  Returns SDL_TRUE if the joystick has been opened and currently connected, or SDL_FALSE if it has not.
   125  */
   125  */
   126 extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick * joystick);
   126 extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick * joystick);
   127 
   127 
   128 /**
   128 /**
   129  *  Get the instance ID of an opened joystick.
   129  *  Get the instance ID of an opened joystick or -1 if the joystick is invalid.
   130  */
   130  */
   131 extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick * joystick);
   131 extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick * joystick);
   132 
   132 
   133 /**
   133 /**
   134  *  Get the number of general axis controls on a joystick.
   134  *  Get the number of general axis controls on a joystick.