---
name: "SDL_JoystickConnected"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_JoystickConnected"
---

# SDL\_JoystickConnected(3)

Get the status of a specified joystick.

## NAME

SDL\_JoystickConnected - Get the status of a specified joystick.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_JoystickConnected(SDL\_Joystick \*joystick);**

## FUNCTION PARAMETERS

- *joystick*

  the joystick to query.

## RETURN VALUE

Returns true if the joystick has been opened, false if it has not; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
