View Single Post
  #1  
Old 05-28-2018, 11:04 AM
BelleGueule BelleGueule is offline
Registered User
 
Join Date: May 2018
Posts: 2
POST ID # = 956403
BelleGueule Reputation: 10
Default [Idea] Anonymous OnKeyXX event

Hi,

I'm the new owner of a Corsair RGB Keyboard and first thing i wanted to do was to create a heatmap of the keyboard.

sadly i dont see a way to "hook" the key event, (other than hooking windows and that's no good...)

I assumed that the reason there was no way to grab the key press was for safety reason.. nobody want to leave a big open door for keylogger. but why not expose an anonymous KeyPress KeyHold and KeyReleased event in the sdk, the keyboard handle the press and we can have fun with the shiny led.

exemple

Code:
void OnKeyPress(float r, float g, float b, float i){
   //do what you want here to change the color of the key without knowing witch key was pressed

}

EDIT: Feel Free to add your comment/idea

ps: i'm not a cpp programmer, I'm not sure how the structure would work but this is an example of how i see it in my head,

Last edited by BelleGueule; 05-28-2018 at 12:53 PM. Reason: added [Idea] tag in the title