---
name: "SDL_JoystickOpened"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_JoystickOpened"
---

# SDL\_JoystickOpened(3)

Determine if a joystick has been opened

## 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**
