//Keyboard event stuff public void connectKbEvt() { RhinoApp.WriteLine("Attaching a hose to the keyboard events pipe to be called broohaha!!"); //Rhino.ApplicationSettings.ShortcutKeySettings.SetMacro(shortCutKey, ""); kbEvt = new Rhino.RhinoApp.KeyboardHookEvent(keyBoardTarget); Rhino.RhinoApp.KeyboardEvent += kbEvt; }
internal static extern void RHC_SetKeyboardCallback(Rhino.RhinoApp.KeyboardHookEvent cb);
//Keyboard event stuff public void connectKbEvt() { RhinoApp.WriteLine("Attaching a hose to the keyboard events pipe to be called broohaha!!"); kbEvt = new Rhino.RhinoApp.KeyboardHookEvent(keyBoardTarget); Rhino.RhinoApp.KeyboardEvent += kbEvt; }
//Keyboard event stuff public void connectKbEvt() { kbEvtEnabled = false; RhinoApp.WriteLine("Attaching a hose to the keyboard events pipe to be called broohaha!!"); Rhino.ApplicationSettings.ShortcutKeySettings.SetMacro(shortCutKey, ""); kbEvt = new Rhino.RhinoApp.KeyboardHookEvent(keyBoardTarget); Rhino.RhinoApp.KeyboardEvent += kbEvt; kbEvtAttached = true; bTimer = new System.Timers.Timer(1000); bTimer.Elapsed += new ElapsedEventHandler(keyboardDelayedConnect); bTimer.AutoReset = false; bTimer.Start(); }