include/SDL_joystick.h
changeset 9884 26b595dea221
parent 9806 2deeef7b793c
child 9916 9429bc102632
equal deleted inserted replaced
9883:48cf7d652118 9884:26b595dea221
    69     Uint8 data[16];
    69     Uint8 data[16];
    70 } SDL_JoystickGUID;
    70 } SDL_JoystickGUID;
    71 
    71 
    72 typedef Sint32 SDL_JoystickID;
    72 typedef Sint32 SDL_JoystickID;
    73 
    73 
       
    74 typedef enum
       
    75 {
       
    76     SDL_JOYSTICK_POWER_UNKNOWN = -1,
       
    77     SDL_JOYSTICK_POWER_EMPTY,
       
    78     SDL_JOYSTICK_POWER_LOW,
       
    79     SDL_JOYSTICK_POWER_MEDIUM,
       
    80     SDL_JOYSTICK_POWER_FULL,
       
    81     SDL_JOYSTICK_POWER_WIRED,
       
    82     SDL_JOYSTICK_POWER_MAX
       
    83 } SDL_JoystickPowerLevel;
    74 
    84 
    75 /* Function prototypes */
    85 /* Function prototypes */
    76 /**
    86 /**
    77  *  Count the number of joysticks attached to the system right now
    87  *  Count the number of joysticks attached to the system right now
    78  */
    88  */
   240 /**
   250 /**
   241  *  Close a joystick previously opened with SDL_JoystickOpen().
   251  *  Close a joystick previously opened with SDL_JoystickOpen().
   242  */
   252  */
   243 extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
   253 extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
   244 
   254 
       
   255 /**
       
   256 *  Return the battery level of this joystick
       
   257 */
       
   258 extern DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL_Joystick * joystick);
       
   259 
   245 
   260 
   246 /* Ends C function definitions when using C++ */
   261 /* Ends C function definitions when using C++ */
   247 #ifdef __cplusplus
   262 #ifdef __cplusplus
   248 }
   263 }
   249 #endif
   264 #endif