include/SDL_joystick.h
changeset 9884 26b595dea221
parent 9806 2deeef7b793c
child 9916 9429bc102632
     1.1 --- a/include/SDL_joystick.h	Wed Sep 30 15:38:30 2015 -0700
     1.2 +++ b/include/SDL_joystick.h	Wed Sep 30 15:39:30 2015 -0700
     1.3 @@ -71,6 +71,16 @@
     1.4  
     1.5  typedef Sint32 SDL_JoystickID;
     1.6  
     1.7 +typedef enum
     1.8 +{
     1.9 +    SDL_JOYSTICK_POWER_UNKNOWN = -1,
    1.10 +    SDL_JOYSTICK_POWER_EMPTY,
    1.11 +    SDL_JOYSTICK_POWER_LOW,
    1.12 +    SDL_JOYSTICK_POWER_MEDIUM,
    1.13 +    SDL_JOYSTICK_POWER_FULL,
    1.14 +    SDL_JOYSTICK_POWER_WIRED,
    1.15 +    SDL_JOYSTICK_POWER_MAX
    1.16 +} SDL_JoystickPowerLevel;
    1.17  
    1.18  /* Function prototypes */
    1.19  /**
    1.20 @@ -242,6 +252,11 @@
    1.21   */
    1.22  extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
    1.23  
    1.24 +/**
    1.25 +*  Return the battery level of this joystick
    1.26 +*/
    1.27 +extern DECLSPEC SDL_JoystickPowerLevel SDLCALL SDL_JoystickCurrentPowerLevel(SDL_Joystick * joystick);
    1.28 +
    1.29  
    1.30  /* Ends C function definitions when using C++ */
    1.31  #ifdef __cplusplus