コード例 #1
0
ファイル: GameController.cs プロジェクト: Ciastex/sdl-sharp
 /// <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));
コード例 #2
0
ファイル: GameController.cs プロジェクト: Ciastex/sdl-sharp
 /// <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));