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(); }
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(); }