예제 #1
0
        public MenuHotkey RegisterHotkey(KeyOrMouseButton key, Action <MenuInputEventArgs> action, HotkeyFlags flags = HotkeyFlags.Press)
        {
            var hotkey = new MenuHotkey(key, action, flags);

            this.hotkeys.Add(hotkey);

            return(hotkey);
        }
예제 #2
0
 public void UnregisterHotkey(MenuHotkey hotkey)
 {
     this.UnregisterHotkey(hotkey.Name);
 }