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_AttachVirtualJoystick - Attach a new virtual joystick.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

desc   joystick description, initialized using SDL_INIT_INTERFACE().

Name

       SDL_AttachVirtualJoystick - Attach a new virtual joystick.

Return Value

       Returns the joystick instance ID, or 0 on failure; call SDL_GetError() for more information.

See Also

SDL_DetachVirtualJoystick(3)

Simple Directmedia Layer                           SDL 3.2.20                       SDL_AttachVirtualJoystick(3)

Synopsis

#include<SDL3/SDL_joystick.h>SDL_JoystickIDSDL_AttachVirtualJoystick(constSDL_VirtualJoystickDesc*desc);

See Also