public void SetLEDStatus(LedStatus status) { var cmd = LEDCommand.Create(status); var result = ExecuteCommand(ref cmd); DebugLog($"SpaceNavigatorHID : Executed LEDCommand. status = {status}, result = {result}"); }
public static LEDCommand Create(LedStatus status) { var result = new LEDCommand(); result.baseCommand = new InputDeviceCommand(result.typeStatic, InputDeviceCommand.BaseCommandSize + 2); result.reportId = 0x04; result.status = (byte)status; return(result); }