diff --git a/CueSDK.cs b/CueSDK.cs index d783db0..383d9c9 100644 --- a/CueSDK.cs +++ b/CueSDK.cs @@ -269,6 +269,9 @@ namespace CUE.NET if (!IsInitialized) throw new WrapperException("CueSDK isn't initialized."); + if (_onKeyPressedDelegate != null) + return; + _onKeyPressedDelegate = OnKeyPressed; _CUESDK.CorsairRegisterKeypressCallback(Marshal.GetFunctionPointerForDelegate(_onKeyPressedDelegate), IntPtr.Zero); }