Engine/lib/sdl/src/joystick/emscripten/SDL_sysjoystick.c
/* Returns item matching given HTML gamepad index. */
Returns item matching given HTML gamepad index.
Returns item matching given HTML gamepad index .
static SDL_joylist_item *
JoystickByIndex(int index)
{
    SDL_joylist_item *item = SDL_joylist;
    if (index < 0) {
        return NULL;
    }
    while (item != NULL) {
        if (item->index == index) {
            break;
        }
        item = item->next;
    }
    return item;
}
static SDL_joylist_item * JoystickByIndex ( int index ) { SDL_joylist_item * item = SDL_joylist ; if ( index < 0 ) { return NULL ; } while ( item != NULL ) { if ( item -> index == index ) { break ; } item = item -> next ; } return item ; }
Returns item matching given HTML gamepad index.
Returns item matching given HTML gamepad index .