// Use this for initialization void Start() { //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 usingCallback = true; if (usingCallback) { LogitechGSDK.logiGkeyCB cbInstance = new LogitechGSDK.logiGkeyCB(this.GkeySDKCallback); LogitechGSDK.LogiGkeyInitWithoutContext(cbInstance); } else { LogitechGSDK.LogiGkeyInitWithoutCallback(); } }
public Sync() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //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 usingCallback = true; //or false, depending on your implementation if (usingCallback) { cbInstance = new LogitechGSDK.logiGkeyCB(this.GkeySDKCallback); LogitechGSDK.LogiGkeyInitWithoutContext(cbInstance); } else { LogitechGSDK.LogiGkeyInitWithoutCallback(); } timer1.Start(); }