Ejemplo n.º 1
0
    public static Players[] getStart()
    {
        playersWhoUsedInput.Clear();

        for (int i = 0; i < (int)Players.count; i++)
        {
            if (GamepadInput.GamePad.GetButton(GamepadInput.GamePad.Button.Start, PlayersInfo.getGamepad((Players)i)))
            {
                playersWhoUsedInput.Add((Players)i);
            }
        }

        return(playersWhoUsedInput.ToArray());
    }
Ejemplo n.º 2
0
 public static bool getStartUp(Players player)
 {
     return(GamepadInput.GamePad.GetButtonUp(GamepadInput.GamePad.Button.Start, PlayersInfo.getGamepad(player)));
 }
Ejemplo n.º 3
0
 public static bool getThrowDown(Players player)
 {
     return(GamepadInput.GamePad.GetButtonDown(GamepadInput.GamePad.Button.X, PlayersInfo.getGamepad(player)));
 }
Ejemplo n.º 4
0
 public static bool getSwitchLeft(Players player)
 {
     return(GamepadInput.GamePad.GetButton(GamepadInput.GamePad.Button.LeftShoulder, PlayersInfo.getGamepad(player)));
 }
Ejemplo n.º 5
0
    //==============================================================================================

    public static bool getJump(Players player)
    {
        return(GamepadInput.GamePad.GetButton(GamepadInput.GamePad.Button.A, PlayersInfo.getGamepad(player)));
    }
Ejemplo n.º 6
0
 public static bool getDashUp(Players player)
 {
     return(GamepadInput.GamePad.GetButtonUp(GamepadInput.GamePad.Button.RightShoulder, PlayersInfo.getGamepad(player)));
 }
Ejemplo n.º 7
0
    //==============================================================================================

    public static Vector2 getLeftStick(Players player)
    {
        return(GamepadInput.GamePad.GetAxis(GamepadInput.GamePad.Axis.LeftStick, PlayersInfo.getGamepad(player)));
    }