Example #1
0
 public InputManager(Game game, ActiveDevice device = ActiveDevice.Keyboard | ActiveDevice.Pad, int lever = 500)
 {
     Game = game;
     DirectInput = new SharpDX.DirectInput.DirectInput();
     LeverDead = lever;
     MouseState = new MouseState();
     var ms = MSInput::Mouse.GetState();
     MouseState.X = ms.X;
     MouseState.Y = ms.Y;
     ControlState = new ControlState();
     GamePlayControlState = new ControlState();
     keyConfig = KeyboardConfig.GetDefault();
     padConfig = PadConfig.GetDefault();
     InitDevices(device);
     GetPushedKey();//������
 }
Example #2
0
 public LinearSelecter(ControlState input, int max, int freq, int loopBegin, SelectDirection dir)
     : base(input, max, freq, loopBegin)
 {
     Direction = dir;
 }
Example #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="input">使用する入力State 普通はキー入力そのままの</param>
 /// <param name="max">要素数</param>
 /// <param name="freq">押しっぱなし自動移動の速度、負ならループしない</param>
 /// <param name="dir">縦か横か</param>
 public LinearSelecter(ControlState input, int max, int freq, SelectDirection dir)
     : this(input, max, freq, freq, dir)
 {
 }
Example #4
0
 protected SelecterBase(ControlState input, int max, int freq, int loopBegin)
 {
     Input = input;
     OptionCount = max;
     ReloadFreq = freq;
     BeginReloadCount = loopBegin;
 }
Example #5
0
 protected SelecterBase(ControlState input, int max, int freq)
     : this(input, max, freq, freq)
 {
 }
Example #6
0
 public PlaneSelecter(ControlState input, int max, int freq, int loopBegin, int length, SelectDirection dir)
     : base(input, max, freq, loopBegin)
 {
     Direction = dir;
     LineLength = length;
 }
Example #7
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="input"></param>
 /// <param name="max">全要素数</param>
 /// <param name="freq">負ならループしない</param>
 /// <param name="length">一行(列)の長さ</param>
 /// <param name="dir">行方向だと+1か、列方向だとか</param>
 public PlaneSelecter(ControlState input, int max, int freq, int length, SelectDirection dir)
     : this(input, max, freq, freq, length, dir)
 {
 }