mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-10 20:46:24 +00:00
Added an event to get the key-change of special keys (G and M)
This commit is contained in:
1 parent
c4ac6f0e40
commit
5091b33864
8 files changed
+198
No files matched your search
@@ -63,6 +63,7 @@ namespace CUE.NET.Native
|
||||
_corsairReleaseControlPointer = (CorsairReleaseControlPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairReleaseControl"), typeof(CorsairReleaseControlPointer));
|
||||
_corsairPerformProtocolHandshakePointer = (CorsairPerformProtocolHandshakePointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairPerformProtocolHandshake"), typeof(CorsairPerformProtocolHandshakePointer));
|
||||
_corsairGetLastErrorPointer = (CorsairGetLastErrorPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairGetLastError"), typeof(CorsairGetLastErrorPointer));
|
||||
_corsairRegisterKeypressCallbackPointer = (CorsairRegisterKeypressCallbackPointer)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_dllHandle, "CorsairRegisterKeypressCallback"), typeof(CorsairRegisterKeypressCallbackPointer));
|
||||
}
|
||||
|
||||
private static void UnloadCUESDK()
|
||||
@@ -100,6 +101,7 @@ namespace CUE.NET.Native
|
||||
private static CorsairReleaseControlPointer _corsairReleaseControlPointer;
|
||||
private static CorsairPerformProtocolHandshakePointer _corsairPerformProtocolHandshakePointer;
|
||||
private static CorsairGetLastErrorPointer _corsairGetLastErrorPointer;
|
||||
private static CorsairRegisterKeypressCallbackPointer _corsairRegisterKeypressCallbackPointer;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -138,6 +140,9 @@ namespace CUE.NET.Native
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
private delegate CorsairError CorsairGetLastErrorPointer();
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
private delegate bool CorsairRegisterKeypressCallbackPointer(IntPtr callback, IntPtr context);
|
||||
|
||||
#endregion
|
||||
|
||||
// ReSharper disable EventExceptionNotDocumented
|
||||
@@ -231,6 +236,11 @@ namespace CUE.NET.Native
|
||||
return _corsairGetLastErrorPointer();
|
||||
}
|
||||
|
||||
internal static bool CorsairRegisterKeypressCallback(IntPtr callback, IntPtr context)
|
||||
{
|
||||
return _corsairRegisterKeypressCallbackPointer(callback, context);
|
||||
}
|
||||
|
||||
// ReSharper restore EventExceptionNotDocumented
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user