SDL_JoystickType(3type)
π NAME π
okay so SDL_JoystickType β it's an enum, bestie. an enum of some common joystick types. that's the whole vibe. β¨
π SYNOPSIS π
like, here's literally what you write:
#include <SDL3/SDL_joystick.h>
typedef enum SDL_JoystickType
{
SDL_JOYSTICK_TYPE_UNKNOWN,
SDL_JOYSTICK_TYPE_GAMEPAD,
SDL_JOYSTICK_TYPE_WHEEL,
SDL_JOYSTICK_TYPE_ARCADE_STICK,
SDL_JOYSTICK_TYPE_FLIGHT_STICK,
SDL_JOYSTICK_TYPE_DANCE_PAD,
SDL_JOYSTICK_TYPE_GUITAR,
SDL_JOYSTICK_TYPE_DRUM_KIT,
SDL_JOYSTICK_TYPE_ARCADE_PAD,
SDL_JOYSTICK_TYPE_THROTTLE,
SDL_JOYSTICK_TYPE_COUNT
} SDL_JoystickType;
look at all those little guys. π¦ one for every era of your gaming life, fr fr.
πΈ DESCRIPTION πΈ
so sometimes SDL is lowkey psychic and can tell that a low-level joystick is a certain type of device, and it'll report that back to you through SDL_GetJoystickType (or SDL_GetJoystickTypeForID). iconic behavior honestly. π
and please do not treat this list as the final word, bestie β this is by no means a complete list of everything that can be plugged into a computer. people plug the wildest stuff in. π
if you want the general β¨loreβ¨ behind what each joystick type actually means, you may refer to the XInput Controller Types table:
https://learn.microsoft.com/en-us/windows/win32/xinput/xinput-and-controller-subtypes
it's giving reference material. go read it, iykyk. π
π AVAILABILITY π
this enum is available since SDL 3.2.0. so if you're on something olderβ¦ not me, not the vibe check passing. π«Ά
π«Ά SEE ALSO π«Ά
okay there's no SEE ALSO section on this page, bestie, but the functions that use this thing are right up there in the description β SDL_GetJoystickType and SDL_GetJoystickTypeForID. go say hi to them. π
that's the whole page, no notes. π brought to you by the Simple Directmedia Layer girlies β this is SDL 3.4.18, page SDL_JoystickType(3type), and yeah that's the version and the title and the whole footer moment wrapped up in a bow. π bye bestie, go read your joystick types. β
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms