include/SDL_joystick.h
changeset 10752 c9d3ff50dfcf
parent 10737 3406a0f8b041
child 10855 fc18eb831c08
     1.1 --- a/include/SDL_joystick.h	Wed Jan 04 07:06:48 2017 -0800
     1.2 +++ b/include/SDL_joystick.h	Wed Jan 04 10:28:07 2017 -0800
     1.3 @@ -245,6 +245,18 @@
     1.4                                                     int axis);
     1.5  
     1.6  /**
     1.7 + *  Get the initial state of an axis control on a joystick.
     1.8 + *
     1.9 + *  The state is a value ranging from -32768 to 32767.
    1.10 + *
    1.11 + *  The axis indices start at index 0.
    1.12 + *
    1.13 + *  \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
    1.14 + */
    1.15 +extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAxisInitialState(SDL_Joystick * joystick,
    1.16 +                                                   int axis, Sint16 *state);
    1.17 +
    1.18 +/**
    1.19   *  \name Hat positions
    1.20   */
    1.21  /* @{ */