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

# SDL\_JoystickConnectionState(3type)

Possible connection states for a joystick device.

## NAME

SDL\_JoystickConnectionState - Possible connection states for a joystick device.

## HEADER FILE

Defined in SDL3/SDL\_joystick.h

## SYNOPSIS

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

**typedef enum SDL\_JoystickConnectionState** **{**     **SDL\_JOYSTICK\_CONNECTION\_INVALID = -1,**     **SDL\_JOYSTICK\_CONNECTION\_UNKNOWN,**     **SDL\_JOYSTICK\_CONNECTION\_WIRED,**     **SDL\_JOYSTICK\_CONNECTION\_WIRELESS** **} SDL\_JoystickConnectionState;**

## DESCRIPTION

This is used by

**SDL\_GetJoystickConnectionState**\
  to report how a device is connected to the system.

## AVAILABILITY

This enum is available since SDL 3.2.0.
