예제 #1
0
파일: SdlInput.cs 프로젝트: sinshu/dtf
 public SdlInput(bool fullscreen)
 {
     keyBoardInput = new KeyBoardInput();
     joyStick = new JoyStick(0);
     mouseInput = new MouseInput();
     if (fullscreen)
     {
         mouseInput.Hide();
     }
 }
예제 #2
0
파일: InputDevice.cs 프로젝트: sinshu/chaos
 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;
 }