Ejemplo n.º 1
0
 public SdlInput(bool fullscreen)
 {
     keyBoardInput = new KeyBoardInput();
     joyStick = new JoyStick(0);
     mouseInput = new MouseInput();
     if (fullscreen)
     {
         mouseInput.Hide();
     }
 }
Ejemplo n.º 2
0
 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;
 }