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