Ejemplo n.º 1
0
 /// <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);
Ejemplo n.º 2
0
 /// <summary>
 /// Get the underlying joystick object used by a controller.
 /// </summary>
 public static SDL_Joystick SDL_GameControllerGetJoystick(SDL_GameController gamecontroller) => s_sdl_gameControllerGetJoystick(gamecontroller);
Ejemplo n.º 3
0
 /// <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);
Ejemplo n.º 4
0
 /// <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);
Ejemplo n.º 5
0
 /// <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);
Ejemplo n.º 6
0
 /// <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);
Ejemplo n.º 7
0
 /// <summary>
 /// Return the name for this currently opened controller.
 /// </summary>
 public static byte *SDL_GameControllerName(SDL_GameController gamecontroller) => s_sdl_gameControllerName(gamecontroller);
Ejemplo n.º 8
0
 /// <summary>
 /// Close a controller previously opened with SDL_GameControllerOpen().
 /// </summary>
 public static void SDL_GameControllerClose(SDL_GameController gamecontroller) => s_sdl_gameControllerClose(gamecontroller);