Ejemplo n.º 1
0
        public override void OnInputAction(InputAction action, bool pressedThisFrame)
        {
            switch (action)
            {
            case InputAction.Action1:     //default P1 - Space,         P2 - NumPad0,   360 - A
            case InputAction.Action2:     //default P1 - Q,             P2 - NumPad9,   360 - B
            case InputAction.Action3:     //default P1 - LeftShift,     P2 - Enter,     360 - X
            case InputAction.Action4:     //default P1 - LeftControl,   P2 - Plus,      360 - Y
                Inventory.ActivatePowerup(playerIndex, action);
                break;

            case InputAction.Start:     //default P1 - T, P2 - T, 360 - Start
                if (pressedThisFrame)
                {
                    RetroGame.PauseGame(this);
                }
                break;

            case InputAction.Escape:     //default P1 - Escape, P2 - Escape, 360 - Back
                if (pressedThisFrame)
                {
                    RetroGame.PauseGame(this);
                }
                break;

            default:
                break;
            }
        }