mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-09 12:06:24 +00:00
Merge pull request #70 from hmmwhatsthisdo/enablekeypresscallback_issue69
Add sanity-check to CueSDK.EnableKeypressHandler()
This commit is contained in:
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user