The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Corsair Utility Engine (CUE) 1.x and 2.x > CUE 1.x and 2.x SDK

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #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
  #2  
Old 05-28-2018, 03:19 PM
Darth Affe's Avatar
Darth Affe Darth Affe is offline
//TODO add user title
Darth Affe's PC Specs
 
Join Date: Sep 2015
Location: UTC+1
Posts: 125
POST ID # = 956441
Darth Affe Reputation: 15
Default

As far as I know parsing the HID-packages is the only way to capture all keys in the same way.
The other option would be to use the SDK for the G-keys and windows hooks for the rest.

The anonymous method you're talking about too wouldn't be of too much use. Since it would be only called on key press/release you couldn't even animate it to somehow fade away. Aside from that you couldn't do much more than a heatmap with it.

Last edited by Darth Affe; 05-28-2018 at 03:21 PM.
  #3  
Old 05-28-2018, 03:32 PM
BelleGueule BelleGueule is offline
Registered User
 
Join Date: May 2018
Posts: 2
POST ID # = 956442
BelleGueule Reputation: 10
Default

Quote:
Originally Posted by Darth Affe View Post
The anonymous method you're talking about too wouldn't be of too much use. Since it would be only called on key press/release you couldn't even animate it to somehow fade away. Aside from that you couldn't do much more than a heatmap with it.
there's still some animation that could be done(for example you light up the key that got press, and apply a fade off of all the key that have a intensity value of >0.XXf for a "rain effect" ) but it would still allow for malicious code to run base on the difference of intensity of the key.. so that's still no good..
  #4  
Old 05-29-2018, 09:30 AM
hastegag hastegag is offline
Registered User
hastegag's PC Specs
 
Join Date: Dec 2016
Location: Northeast US
Posts: 898
POST ID # = 956503
hastegag Reputation: 20
Default

I dont think you need to sweat the keylogger unless you're saving out every key you pressed. No one should have access to your private setup and particularly not to private memory and if they do, they do already or your new sdk application isn't going to facilitate that.

The 'heatmap' might be something you can get with a play from pressed key lighting effect in Cue? I love that effect in word and outlook, I have cue do a light blue fade away off the last pressed key on the letters.

But a heat map typically is a statistical representation of the most frequently pressed keys...right?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.