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;
}