Exemplo n.º 1
0
 //Default settings
 public void MakeDefault()
 {
     SelectKey   = new GamepadInput(this, "SelectKey", Buttons.A, PlayerIndex.One);
     AnalogStick = new GamePadAnalog(this, "AnalogStick", Sticks.Right, PlayerIndex.One);
     UpKey       = new GamepadInput(this, "UpKey", Buttons.DPadUp, PlayerIndex.One);
     DownKey     = new GamepadInput(this, "DownKey", Buttons.DPadDown, PlayerIndex.One);
     LeftKey     = new GamepadInput(this, "LeftKey", Buttons.DPadLeft, PlayerIndex.One);
     RightKey    = new GamepadInput(this, "RightKey", Buttons.DPadRight, PlayerIndex.One);
     Input       = MovementInput.Analog;
 }
Exemplo n.º 2
0
 public DoubleInput(Node parent, string name, Keys key, Buttons button, PlayerIndex pi)
     : base(parent, name)
 {
     Key = new KeyboardInput(this, name + "key", key);
     Button = new GamepadInput(this, name + "gamepad", button, pi);
 }
            public ColorGameOfLifeManager(Node parent, string name)
                : base(parent, name)
            {
                UpdateTimer = new Timer(this, "UpdateTimer");
                UpdateTimer.Milliseconds = 250;

                DrawButton = new GamepadInput(this, "DrawButton", Buttons.B, PlayerIndex.One);
                DrawMouseButton = new MouseInput(this, "DrawMousebUtton", MouseButton.RightButton);

                EraseButton = new GamepadInput(this, "EraseButton", Buttons.X, PlayerIndex.One);
                EraseMouseButton = new MouseInput(this, "EraseMousebUtton", MouseButton.MiddleButton);
            }
Exemplo n.º 4
0
 //Default settings
 public void MakeDefault()
 {
     SelectKey = new GamepadInput(this, "SelectKey", Buttons.A, PlayerIndex.One);
     AnalogStick = new GamePadAnalog(this, "AnalogStick", Sticks.Right, PlayerIndex.One);
     UpKey = new GamepadInput(this, "UpKey", Buttons.DPadUp, PlayerIndex.One);
     DownKey = new GamepadInput(this, "DownKey", Buttons.DPadDown, PlayerIndex.One);
     LeftKey = new GamepadInput(this, "LeftKey", Buttons.DPadLeft, PlayerIndex.One);
     RightKey = new GamepadInput(this, "RightKey", Buttons.DPadRight, PlayerIndex.One);
     Input = MovementInput.Analog;
 }
Exemplo n.º 5
0
 public DoubleInput(Node parent, string name, Keys key, Buttons button, PlayerIndex pi)
     : base(parent, name)
 {
     Key    = new KeyboardInput(this, name + "key", key);
     Button = new GamepadInput(this, name + "gamepad", button, pi);
 }
            public ParticleTestManager(State stateref)
                : base(stateref, "ParticleTestManager")
            {
                _controlHandler = stateref.GetService<ControlHandler>();
                _body = new Body(this, "EmitterBody");
                Spawner = new TestSpawner(this, "Spawner");

                _moveCursor = new GamePadAnalog(this, "MoveCursor", Sticks.Left, PlayerIndex.One);
                _emitButton = new GamepadInput(this, "EmitButton", Buttons.B, PlayerIndex.One);
            }