CarpMuffin.Input.InputManager.InputManager C# (CSharp) 메소드

InputManager() 공개 메소드

public InputManager ( bool hasKeyboard = true, bool hasGamePad = true, bool hasMouse = true ) : CarpMuffin.Graphics
hasKeyboard bool
hasGamePad bool
hasMouse bool
리턴 CarpMuffin.Graphics
        public InputManager(bool hasKeyboard = true, bool hasGamePad = true, bool hasMouse = true)
        {
            IsEnabled = true;
            Keyboard = new KeyboardManager();
            GamePad = new GamePadManager();
            Mouse = new MouseManager();

            if (!hasKeyboard) Keyboard.IsEnabled = false;
            if (!hasGamePad) GamePad.IsEnabled = false;
            if (!hasMouse) Mouse.IsEnabled = false;
        }