コード例 #1
0
        private void SetUpKeyBinds(IHotkeyManager hotkeys)
        {
            hotkeys.Bind(_settings.GetItem <string>(DumpSceneBasicSettingsKey),
                         () =>
            {
                DumpBasic();
            }
                         );

            hotkeys.Bind(_settings.GetItem <string>(DumpSceneDetailedSettingsKey),
                         () =>
            {
                DumpDetailed();
            }
                         );
        }
コード例 #2
0
    public static Hotkey BindHotkey(this IHotkeyManager m, string hotkeyString, Action action, bool isOneTime = false)
    {
        Hotkey hotkey = new Hotkey(hotkeyString, isOneTime);

        m.Bind(hotkey, action);

        return(hotkey);
    }