Exemplo n.º 1
0
 /// <summary>
 /// Returns true during the frame the user releases the key identified by the GamepadButton enum parameter
 /// </summary>
 public static bool GetKeyUp(UnityEngine.InputSystem.LowLevel.GamepadButton key)
 {
     return(Gamepad.current[key].wasReleasedThisFrame);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns true while the user holds down the key identified by the GamepadButton enum parameter
 /// </summary>
 public static bool GetKey(UnityEngine.InputSystem.LowLevel.GamepadButton key)
 {
     return(Gamepad.current[key].isPressed);
 }