---
name: "SDL_JoystickNumAxes"
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_JoystickNumAxes"
---

# SDL\_JoystickNumAxes(3)

Get the number of joystick axes

## NAME

SDL\_JoystickNumAxes - Get the number of joystick axes

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_JoystickNumAxes**(**SDL\_Joystick \*joystick**);

## DESCRIPTION

Return the number of axes available from a previously opened **SDL\_Joystick**.

## RETURN VALUE

Number of axes.

## SEE ALSO

**SDL\_JoystickGetAxis**, **SDL\_JoystickOpen**
