/// <summary> /// Get the current state of a button on a game controller. /// The button indices start at index 0. /// </summary> public static byte SDL_GameControllerGetButton(SDL_GameController gamecontroller, SDL_GameControllerButton button) => s_sdl_gameControllerGetButton(gamecontroller, button);
/// <summary> /// Get the underlying joystick object used by a controller. /// </summary> public static SDL_Joystick SDL_GameControllerGetJoystick(SDL_GameController gamecontroller) => s_sdl_gameControllerGetJoystick(gamecontroller);
/// <summary> /// Get the current state of an axis control on a game controller. /// The state is a value ranging from -32768 to 32767 (except for the triggers, /// which range from 0 to 32767). /// The axis indices start at index 0. /// </summary> public static short SDL_GameControllerGetAxis(SDL_GameController gamecontroller, SDL_GameControllerAxis axis) => s_sdl_gameControllerGetAxis(gamecontroller, axis);
/// <summary> /// Returns 1 if the controller has been opened and currently connected, or 0 if it has not. /// </summary> public static int SDL_GameControllerGetAttached(SDL_GameController gamecontroller) => s_sdl_gameControllerGetAttached(gamecontroller);
/// <summary> /// Get the product version of an opened controller, if available. /// If the product version isn't available this function returns 0. /// </summary> public static ushort SDL_GameControllerGetProductVersion(SDL_GameController gamecontroller) => s_sdl_gameControllerGetProductVersion(gamecontroller);
/// <summary> /// Get the USB vendor ID of an opened controller, if available. /// If the vendor ID isn't available this function returns 0. /// </summary> public static ushort SDL_GameControllerGetVendor(SDL_GameController gamecontroller) => s_sdl_gameControllerGetVendor(gamecontroller);
/// <summary> /// Return the name for this currently opened controller. /// </summary> public static byte *SDL_GameControllerName(SDL_GameController gamecontroller) => s_sdl_gameControllerName(gamecontroller);
/// <summary> /// Close a controller previously opened with SDL_GameControllerOpen(). /// </summary> public static void SDL_GameControllerClose(SDL_GameController gamecontroller) => s_sdl_gameControllerClose(gamecontroller);