コード例 #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;
 }