示例#1
0
        public unsafe long DeviceCommand(int deviceId, InputDeviceCommand *commandPtr)
        {
            if (commandPtr == null)
            {
                throw new System.ArgumentNullException(nameof(commandPtr));
            }

            return(NativeInputSystem.IOCTL(deviceId, commandPtr->type, new IntPtr(commandPtr->payloadPtr), commandPtr->payloadSizeInBytes));
        }
 public unsafe long DeviceCommand(int deviceId, InputDeviceCommand *commandPtr)
 {
     return(NativeInputSystem.IOCTL(deviceId, commandPtr->type, new IntPtr(commandPtr->payloadPtr), commandPtr->payloadSizeInBytes));
 }