Ejemplo n.º 1
0
        public Joystick(JoystickInfo deviceInfo)
        {
            _info = deviceInfo;

            if (_info.Id < 0 || _info.Id > 15)
            {
                throw new ArgumentOutOfRangeException("deviceInfo", _info.Id, "Joystick ID must be between 0 and 15");
            }
        }
Ejemplo n.º 2
0
 internal JoystickStatus(JoystickInfo deviceInfo, JoyInfoEx statusInfo)
 {
     _info   = deviceInfo;
     _status = statusInfo;
 }