// Use this for initialization void Start() { descriptionLabel = "Last g-key event : "; lastKeyPress = "No g-key event"; //Value used to show the two different ways to implement g-keys support in your game //change it to false to try the non-callback version if (usingCallback) { LogitechGSDK.logiGKeyCbContext cbContext; LogitechGSDK.logiGkeyCB cbInstance = new LogitechGSDK.logiGkeyCB(this.GkeySDKCallback); cbContext.gkeyCallBack = cbInstance; cbContext.gkeyContext = IntPtr.Zero; LogitechGSDK.LogiGkeyInit(ref cbContext); } else { LogitechGSDK.LogiGkeyInitWithoutCallback(); } }