public BufferedRumble(InputDevice device)
        {
            this.device = device;

            var command = GetHapticCapabilitiesCommand.Create();

            device.ExecuteCommand(ref command);
            capabilities = command.capabilities;
        }
Пример #2
0
        public BufferedRumble(InputDevice device)
        {
            if (device == null)
            {
                throw new System.ArgumentNullException(nameof(device));
            }

            this.device = device;

            var command = GetHapticCapabilitiesCommand.Create();

            device.ExecuteCommand(ref command);
            capabilities = command.capabilities;
        }