IsKeyPressed() public method

public IsKeyPressed ( GamepadButtons button ) : bool
button GamepadButtons
return bool
Exemplo n.º 1
0
 /// <summary>
 /// Returns whether a specified key is currently being pressed.
 /// </summary>
 /// <param name="button"></param>
 /// <returns></returns>
 public bool IsButtonPressed(GamepadButtons button)
 {
     return(gamePad.IsKeyPressed((Fusion.Drivers.Input.GamepadButtons)button));
 }