View Single Post
  #2  
Old 03-16-2016, 02:41 PM
Yannicked's Avatar
Yannicked Yannicked is offline
Registered User
Yannicked's PC Specs
 
Join Date: Dec 2015
Location: Holland
Posts: 20
POST ID # = 842717
Yannicked Reputation: 10
Default

Try creating a windows "hook" with the function and create a map from the virtual keycodes to the corsair id's (in the CorsairLedIdEnum.h file from the SDK)
Code:
HHOOK WINAPI SetWindowsHookEx(
  _In_ int       idHook, // probably WH_KEYBOARD_LL for the keyboard
  _In_ HOOKPROC  lpfn, // the callback 
  _In_ HINSTANCE hMod,
  _In_ DWORD     dwThreadId
);
Example:
https://gist.github.com/Yannicked/23919888d759876221c3