Ejemplo n.º 1
0
public static extern SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(
	IntPtr/* _SDL_GameController*  */ gamecontroller, 
	SDL_GameControllerButton button);
Ejemplo n.º 2
0
 public abstract bool IsButtonDown(SDL_GameControllerButton button);
Ejemplo n.º 3
0
 public bool IsPressed(SDL_GameControllerButton button)
 {
     _buttons.TryGetValue(button, out bool ret);
     return(ret);
 }
Ejemplo n.º 4
0
 public static SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(ref SDL_GameController gamecontroller, SDL_GameControllerButton button) => s_SDL_GameControllerGetBindForButton_SDL_GameController_SDL_GameControllerButton_t(ref gamecontroller, button);
Ejemplo n.º 5
0
 public override bool IsButtonDown(SDL_GameControllerButton button)
 => _newButtons[(int)button];
Ejemplo n.º 6
0
 public static Boolean SDL_GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button) => impl.SDL_GameControllerGetButton(gamecontroller, button);
Ejemplo n.º 7
0
 public static extern SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(
     IntPtr /* _SDL_GameController*  */ gamecontroller,
     SDL_GameControllerButton button);
Ejemplo n.º 8
0
 private static Key MapButton(SDL_GameControllerButton button) => button switch
 {
Ejemplo n.º 9
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.º 10
0
 public static extern string SDL_GameControllerGetStringForButton(
     SDL_GameControllerButton button);
Ejemplo n.º 11
0
 public static NanoGamepadButton GetButton(SDL_GameControllerButton button)
 {
     return(ButtonMap[button]);
 }
Ejemplo n.º 12
0
 public abstract Boolean SDL_GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button);
Ejemplo n.º 13
0
public static extern System.Byte SDL_GameControllerGetButton(
	IntPtr/* _SDL_GameController*  */ gamecontroller, 
	SDL_GameControllerButton button);
Ejemplo n.º 14
0
 public override bool ButtonState(SDL_GameControllerButton button) => false;
Ejemplo n.º 15
0
 public static extern System.Byte SDL_GameControllerGetButton(
     IntPtr /* _SDL_GameController*  */ gamecontroller,
     SDL_GameControllerButton button);
Ejemplo n.º 16
0
 public override bool IsButtonDown(SDL_GameControllerButton button) => false;
 private static extern Boolean INTERNAL_SDL_GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button);
Ejemplo n.º 18
0
 public override bool ButtonState(SDL_GameControllerButton button)
 => _buttonState[(int)button];
 public override sealed Boolean SDL_GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button) => INTERNAL_SDL_GameControllerGetButton(gamecontroller, button);
Ejemplo n.º 20
0
 /// <summary>
 /// Converts an SDL2 SDL_GameControllerButton value to an Ultraviolet GamePadButton value.
 /// </summary>
 /// <param name="button">The <see cref="SDL_GameControllerButton"/> value to convert.</param>
 /// <returns>The converted <see cref="GamePadButton"/> value.</returns>
 private static GamePadButton SDLToUltravioletButton(SDL_GameControllerButton button)
 {
     return((GamePadButton)(1 + (int)button));
 }
Ejemplo n.º 21
0
 public static extern Boolean GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button);
Ejemplo n.º 22
0
 public static extern Boolean GameControllerGetButton(IntPtr gamecontroller, SDL_GameControllerButton button);
Ejemplo n.º 23
0
 private GamepadButton ToGamepadButton(SDL_GameControllerButton button)
 {
     return((GamepadButton)button);
 }
Ejemplo n.º 24
0
 public static IntPtr SDL_GameControllerGetStringForButton(SDL_GameControllerButton button) => s_SDL_GameControllerGetStringForButton_SDL_GameControllerButton_t(button);
Ejemplo n.º 25
0
 public abstract bool ButtonState(SDL_GameControllerButton button);
Ejemplo n.º 26
0
 public static byte SDL_GameControllerGetButton(ref SDL_GameController gamecontroller, SDL_GameControllerButton button) => s_SDL_GameControllerGetButton_SDL_GameController_SDL_GameControllerButton_t(ref gamecontroller, button);
Ejemplo n.º 27
0
public static extern string SDL_GameControllerGetStringForButton(
	SDL_GameControllerButton button);