Home
last modified time | relevance | path

Searched refs:SDL_joysticks (Results 1 – 1 of 1) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/joystick/
DSDL_joystick.c41 SDL_Joystick **SDL_joysticks = NULL; variable
52 arraylen = (SDL_allocatedjoysticks+1)*sizeof(*SDL_joysticks); in SDL_JoystickInit()
53 SDL_joysticks = (SDL_Joystick **)SDL_malloc(arraylen); in SDL_JoystickInit()
54 if ( SDL_joysticks == NULL ) { in SDL_JoystickInit()
58 SDL_memset(SDL_joysticks, 0, arraylen); in SDL_JoystickInit()
106 for ( i=0; SDL_joysticks[i]; ++i ) { in SDL_JoystickOpen()
107 if ( device_index == SDL_joysticks[i]->index ) { in SDL_JoystickOpen()
108 joystick = SDL_joysticks[i]; in SDL_JoystickOpen()
173 for ( i=0; SDL_joysticks[i]; ++i ) in SDL_JoystickOpen()
175 SDL_joysticks[i] = joystick; in SDL_JoystickOpen()
[all …]