Engine/lib/sdl/src/joystick/emscripten/SDL_sysjoystick.c
/* Returns item matching given SDL device index. */
Returns item matching given SDL device index.
Returns item matching given SDL device index .
static SDL_joylist_item *
JoystickByDeviceIndex(int device_index)
{
    SDL_joylist_item *item = SDL_joylist;
    while (0 < device_index) {
        --device_index;
        item = item->next;
    }
    return item;
}
static SDL_joylist_item * JoystickByDeviceIndex ( int device_index ) { SDL_joylist_item * item = SDL_joylist ; while ( 0 < device_index ) { -- device_index ; item = item -> next ; } return item ; }
Returns item matching given SDL device index.
Returns item matching given SDL device index .