src/joystick/SDL_joystick_c.h
changeset 6690 9548c8a58103
parent 6138 4c64952a58fb
child 6707 70eeb7e3ec2f
equal deleted inserted replaced
6689:e2fc3ae07582 6690:9548c8a58103
    21 #include "SDL_config.h"
    21 #include "SDL_config.h"
    22 
    22 
    23 /* Useful functions and variables from SDL_joystick.c */
    23 /* Useful functions and variables from SDL_joystick.c */
    24 #include "SDL_joystick.h"
    24 #include "SDL_joystick.h"
    25 
    25 
    26 /* The number of available joysticks on the system */
       
    27 extern Uint8 SDL_numjoysticks;
       
    28 
       
    29 /* Initialization and shutdown functions */
    26 /* Initialization and shutdown functions */
    30 extern int SDL_JoystickInit(void);
    27 extern int SDL_JoystickInit(void);
    31 extern void SDL_JoystickQuit(void);
    28 extern void SDL_JoystickQuit(void);
       
    29 
       
    30 /* Initialization and shutdown functions */
       
    31 extern int SDL_GameControllerInit(void);
       
    32 extern void SDL_GameControllerQuit(void);
       
    33 
    32 
    34 
    33 /* Internal event queueing functions */
    35 /* Internal event queueing functions */
    34 extern int SDL_PrivateJoystickAxis(SDL_Joystick * joystick,
    36 extern int SDL_PrivateJoystickAxis(SDL_Joystick * joystick,
    35                                    Uint8 axis, Sint16 value);
    37                                    Uint8 axis, Sint16 value);
    36 extern int SDL_PrivateJoystickBall(SDL_Joystick * joystick,
    38 extern int SDL_PrivateJoystickBall(SDL_Joystick * joystick,
    37                                    Uint8 ball, Sint16 xrel, Sint16 yrel);
    39                                    Uint8 ball, Sint16 xrel, Sint16 yrel);
    38 extern int SDL_PrivateJoystickHat(SDL_Joystick * joystick,
    40 extern int SDL_PrivateJoystickHat(SDL_Joystick * joystick,
    39                                   Uint8 hat, Uint8 value);
    41                                   Uint8 hat, Uint8 value);
    40 extern int SDL_PrivateJoystickButton(SDL_Joystick * joystick,
    42 extern int SDL_PrivateJoystickButton(SDL_Joystick * joystick,
    41                                      Uint8 button, Uint8 state);
    43                                      Uint8 button, Uint8 state);
       
    44 									 
       
    45 /* Helper function to let lower sys layer tell the event system if the joystick code needs to think */
       
    46 extern int SDL_PrivateJoystickNeedsPolling();
    42 
    47 
    43 /* Internal sanity checking functions */
    48 /* Internal sanity checking functions */
    44 extern int SDL_PrivateJoystickValid(SDL_Joystick ** joystick);
    49 extern int SDL_PrivateJoystickValid(SDL_Joystick * joystick);
    45 
    50 
    46 /* vi: set ts=4 sw=4 expandtab: */
    51 /* vi: set ts=4 sw=4 expandtab: */