public DirectInputAxleEventArgs([NotNull] DirectInputAxle axle, double delta) { if (axle == null) { throw new ArgumentNullException(nameof(axle)); } Axle = axle; Value = axle.Value; Delta = delta; }
public DirectInputAxle GetAxle(int id) { DirectInputAxle result; if (_axles.TryGetValue(id, out result)) { return(result); } result = new DirectInputAxle(this, id); return(_axles[id] = result); }