Exemple #1
0
 /// <summary>
 /// Gets the binding for the button.
 /// </summary>
 /// <param name="button">The button.</param>
 /// <returns>The binding.</returns>
 public GameControllerBinding?GetButtonBinding(GameControllerButton button) =>
 GameControllerBinding.FromNative(Native.SDL_GameControllerGetBindForButton(Pointer, button));
Exemple #2
0
 /// <summary>
 /// Gets the binding for the axis.
 /// </summary>
 /// <param name="axis">The axis.</param>
 /// <returns>The binding.</returns>
 public GameControllerBinding?GetAxisBinding(GameControllerAxis axis) =>
 GameControllerBinding.FromNative(Native.SDL_GameControllerGetBindForAxis(Pointer, axis));