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

NAME

SDL_NumJoysticks - Count available joysticks.

SYNOPSIS

#include "SDL.h"
 
int SDL_NumJoysticks(void);

DESCRIPTION

Counts the number of joysticks attached to the system.

RETURN VALUE

Returns the number of attached joysticks

SEE ALSO

SDL_JoystickName, SDL_JoystickOpen
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