Esempio n. 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);
        }
Esempio n. 2
0
 public void UnregisterHotkey(MenuHotkey hotkey)
 {
     this.UnregisterHotkey(hotkey.Name);
 }