| SDL_OpenGamepad(3) | SDL3 FUNCTIONS | SDL_OpenGamepad(3) |
SDL_OpenGamepad - Open a gamepad for use.
Defined in SDL3/SDL_gamepad.h
#include "SDL3/SDL.h"
SDL_Gamepad * SDL_OpenGamepad(SDL_JoystickID instance_id);
( SDL_Gamepad
*) Returns a gamepad identifier or NULL if an error occurred; call
SDL_GetError () for more information.
This function is available since SDL 3.2.0.
•(3), SDL_CloseGamepad(3), •(3), SDL_IsGamepad(3)
| SDL 3.2.10 | Simple Directmedia Layer |