src/joystick/SDL_joystick_c.h
changeset 6690 9548c8a58103
parent 6138 4c64952a58fb
child 6707 70eeb7e3ec2f
     1.1 --- a/src/joystick/SDL_joystick_c.h	Mon Nov 26 14:59:07 2012 -0800
     1.2 +++ b/src/joystick/SDL_joystick_c.h	Mon Nov 26 16:37:54 2012 -0800
     1.3 @@ -23,13 +23,15 @@
     1.4  /* Useful functions and variables from SDL_joystick.c */
     1.5  #include "SDL_joystick.h"
     1.6  
     1.7 -/* The number of available joysticks on the system */
     1.8 -extern Uint8 SDL_numjoysticks;
     1.9 -
    1.10  /* Initialization and shutdown functions */
    1.11  extern int SDL_JoystickInit(void);
    1.12  extern void SDL_JoystickQuit(void);
    1.13  
    1.14 +/* Initialization and shutdown functions */
    1.15 +extern int SDL_GameControllerInit(void);
    1.16 +extern void SDL_GameControllerQuit(void);
    1.17 +
    1.18 +
    1.19  /* Internal event queueing functions */
    1.20  extern int SDL_PrivateJoystickAxis(SDL_Joystick * joystick,
    1.21                                     Uint8 axis, Sint16 value);
    1.22 @@ -39,8 +41,11 @@
    1.23                                    Uint8 hat, Uint8 value);
    1.24  extern int SDL_PrivateJoystickButton(SDL_Joystick * joystick,
    1.25                                       Uint8 button, Uint8 state);
    1.26 +									 
    1.27 +/* Helper function to let lower sys layer tell the event system if the joystick code needs to think */
    1.28 +extern int SDL_PrivateJoystickNeedsPolling();
    1.29  
    1.30  /* Internal sanity checking functions */
    1.31 -extern int SDL_PrivateJoystickValid(SDL_Joystick ** joystick);
    1.32 +extern int SDL_PrivateJoystickValid(SDL_Joystick * joystick);
    1.33  
    1.34  /* vi: set ts=4 sw=4 expandtab: */