Ejemplo n.º 1
0
        public InputDevice(string name)
        {
            Name = name;
            Meta = "";

            LastChangeTick = 0;

            int numInputControlTypes = Enum.GetValues(typeof(InputTarget)).Length;

            Controls = new InputControl[numInputControlTypes];

            LeftStick  = new TwoAxisInputControl();
            RightStick = new TwoAxisInputControl();
            DPad       = new TwoAxisInputControl();
        }
Ejemplo n.º 2
0
        public InputDevice(string name)
        {
            Name = name;
            Meta = "";

            LastChangeTick = 0;

            int numInputControlTypes = ControlCount;

            Controls = new InputControl[numInputControlTypes];

            LeftStick  = new TwoAxisInputControl();
            RightStick = new TwoAxisInputControl();
            DPad       = new TwoAxisInputControl();
        }