logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetJoystickType - Get the type of an opened joystick.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

joystick
              the SDL_Joystick
               obtained from SDL_OpenJoystick ().

Header File

       Defined in SDL3/SDL_joystick.h

Name

       SDL_GetJoystickType - Get the type of an opened joystick.

Return Value

       ( SDL_JoystickType ) Returns the

       SDL_JoystickType
        of the selected joystick.

See Also

â€ĸ(3), SDL_GetJoystickTypeForID(3)

Simple Directmedia Layer                           SDL 3.2.10                             SDL_GetJoystickType(3)

Synopsis

#include"SDL3/SDL.h"SDL_JoystickTypeSDL_GetJoystickType(SDL_Joystick*joystick);

See Also