void GkeySDKCallback(LogitechGSDK.GkeyCode gKeyCode, String gKeyOrButtonString, IntPtr context) { if (gKeyCode.keyDown == 0) { if (gKeyCode.mouse == 1) { //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(0, "MOUSE " + gKeyOrButtonString, 255, 0, 0); LogitechGSDK.LogiLcdColorSetText(2, LogitechGSDK.LogiGkeyGetMouseButtonStr(gKeyCode.keyIdx), 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(2, "MOUSE " + gKeyOrButtonString); LogitechGSDK.LogiLcdMonoSetText(3, LogitechGSDK.LogiGkeyGetMouseButtonStr(gKeyCode.keyIdx)); } else { //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(0, "KEYBOARD/HEADSET " + gKeyOrButtonString, 255, 0, 0); LogitechGSDK.LogiLcdColorSetText(2, LogitechGSDK.LogiGkeyGetKeyboardGkeyStr(gKeyCode.keyIdx, gKeyCode.mState), 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(2, "KEYBOARD/HEADSET " + gKeyOrButtonString); LogitechGSDK.LogiLcdMonoSetText(3, LogitechGSDK.LogiGkeyGetKeyboardGkeyStr(gKeyCode.keyIdx, gKeyCode.mState)); } //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(1, " Released button :" + gKeyCode.keyIdx + " mode :" + gKeyCode.mState, 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(3, " Released button :" + gKeyCode.keyIdx + " mode :" + gKeyCode.mState); } else { if (gKeyCode.mouse == 1) { //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(0, "MOUSE " + gKeyOrButtonString, 255, 0, 0); LogitechGSDK.LogiLcdColorSetText(2, LogitechGSDK.LogiGkeyGetMouseButtonStr(gKeyCode.keyIdx), 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(2, "MOUSE " + gKeyOrButtonString); LogitechGSDK.LogiLcdMonoSetText(3, LogitechGSDK.LogiGkeyGetMouseButtonStr(gKeyCode.keyIdx)); } else { //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(0, "KEYBOARD/HEADSET " + gKeyOrButtonString, 255, 0, 0); LogitechGSDK.LogiLcdColorSetText(2, LogitechGSDK.LogiGkeyGetKeyboardGkeyStr(gKeyCode.keyIdx, gKeyCode.mState), 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(2, "KEYBOARD/HEADSET " + gKeyOrButtonString); LogitechGSDK.LogiLcdMonoSetText(3, LogitechGSDK.LogiGkeyGetKeyboardGkeyStr(gKeyCode.keyIdx, gKeyCode.mState)); } //These functions are not going to work if you didn't initialize the LCD SDK and calling LogiLcdUpdate every frame LogitechGSDK.LogiLcdColorSetText(1, " Pressed button :" + gKeyCode.keyIdx + " mode :" + gKeyCode.mState, 255, 0, 0); LogitechGSDK.LogiLcdMonoSetText(3, " Pressed button :" + gKeyCode.keyIdx + " mode :" + gKeyCode.mState); } }