public SdlInput(bool fullscreen) { keyBoardInput = new KeyBoardInput(); joyStick = new JoyStick(0); mouseInput = new MouseInput(); if (fullscreen) { mouseInput.Hide(); } }
public InputDevice(bool showCursor, int jumpButton, int attackButton, int startButton) { keyBoard = new KeyBoardInput(); joyStick = new JoyStick(0); mouse = new MouseInput(); if (showCursor) { mouse.Show(); } else { mouse.Hide(); } this.jumpButton = jumpButton + 4; this.attackButton = attackButton + 4; this.startButton = startButton + 4; }