Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly
SDL_JoystickOpened(3) SDL API Reference SDL_JoystickOpened(3)

NAME

SDL_JoystickOpened - Determine if a joystick has been opened

SYNOPSIS

#include "SDL.h"
 
int SDL_JoystickOpened(int index);

DESCRIPTION

Determines whether a joystick has already been opened within the application. index refers to the N'th joystick on the system.

RETURN VALUE

Returns 1 if the joystick has been opened, or 0 if it has not.

SEE ALSO

SDL_JoystickOpen, SDL_JoystickClose
Tue 11 Sep 2001, 23:00 SDL
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org