public SdkError GetLastError() { var RawErrorCode = CgSdkInterop.GetLastError(); if (Enum.IsDefined(typeof(CorsairError), RawErrorCode)) { return(new SdkError((CorsairError)RawErrorCode)); } else { return(new UnknownSdkError(RawErrorCode)); } }
public void ClearAllEvents() { WithErrorHandling(CgSdkInterop.ClearAllEvents()); }
public void ClearAllStates() { WithErrorHandling(CgSdkInterop.ClearAllStates()); }
public void ClearState(string stateName) { WithErrorHandling(CgSdkInterop.ClearState(stateName)); }
public void SetEvent(string eventName) { WithErrorHandling(CgSdkInterop.SetEvent(eventName)); }
public void SetState(string stateName) { WithErrorHandling(CgSdkInterop.SetState(stateName)); }
private void SetGame(string gameName) { WithErrorHandling(CgSdkInterop.SetGame(gameName)); }
public void ReleaseControl() { WithErrorHandling(CgSdkInterop.ReleaseControl()); hasControl = false; }
public void RequestControl() { WithErrorHandling(CgSdkInterop.RequestControl()); hasControl = true; }
private CorsairProtocolDetails PerformProtocolHandshake() { return(new CorsairProtocolDetails(CgSdkInterop.PerformProtocolHandshake())); }