src/joystick/dummy/SDL_sysjoystick.c
changeset 1167 435c2e481299
parent 1152 51a8702d8ecd
child 1312 c9b51268668f
equal deleted inserted replaced
1166:da33b7e6d181 1167:435c2e481299
    31 
    31 
    32 #include "SDL_error.h"
    32 #include "SDL_error.h"
    33 #include "SDL_joystick.h"
    33 #include "SDL_joystick.h"
    34 #include "SDL_sysjoystick.h"
    34 #include "SDL_sysjoystick.h"
    35 #include "SDL_joystick_c.h"
    35 #include "SDL_joystick_c.h"
    36 
       
    37 Uint8 SDL_numjoysticks = 0;
       
    38 
    36 
    39 /* Function to scan the system for joysticks.
    37 /* Function to scan the system for joysticks.
    40  * This function should set SDL_numjoysticks to the number of available
    38  * This function should set SDL_numjoysticks to the number of available
    41  * joysticks.  Joystick 0 should be the system default joystick.
    39  * joysticks.  Joystick 0 should be the system default joystick.
    42  * It should return 0, or -1 on an unrecoverable fatal error.
    40  * It should return 0, or -1 on an unrecoverable fatal error.