View Single Post
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

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)
HHOOK WINAPI SetWindowsHookEx(
  _In_ int       idHook, // probably WH_KEYBOARD_LL for the keyboard
  _In_ HOOKPROC  lpfn, // the callback 
  _In_ HINSTANCE hMod,
  _In_ DWORD     dwThreadId