예제 #1
0
        public DirectInputAxleEventArgs([NotNull] DirectInputAxle axle, double delta)
        {
            if (axle == null)
            {
                throw new ArgumentNullException(nameof(axle));
            }

            Axle  = axle;
            Value = axle.Value;
            Delta = delta;
        }
예제 #2
0
        public DirectInputAxle GetAxle(int id)
        {
            DirectInputAxle result;

            if (_axles.TryGetValue(id, out result))
            {
                return(result);
            }
            result = new DirectInputAxle(this, id);
            return(_axles[id] = result);
        }