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
Prev Previous Post   Next Post Next
Old 11-11-2015, 05:03 AM
ranma1988 ranma1988 is offline
Registered User
Join Date: Nov 2015
Posts: 1
POST ID # = 819394
ranma1988 Reputation: 10
Default How to get states ok keyboard key

Hi im trying to triger events when a key was pressed.
do anyone have a solution for this?

My current solution works onnly for a-z keys.

for (int i = 0; i < 255 i++)
ledId = CorsairGetLedIdForKeyName((char)i);
//do action on ledId

the problem with this solution is that: CorsairGetLedIdForKeyName does not return values for ESC and any other key than a-z keys.

ESC(27) CorsairGetLedIdForKeyName -> CorsairLedId.CLI_Invalid

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 12:34 AM.

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