Example #1
0
        private bool ShortcutUp(ModOptions.Shortcut shortcut)
        {
            if (shortcut.Key == KeyCode.None)
            {
                return(true);
            }

            return(Input.GetKeyUp(shortcut.Key));
        }
Example #2
0
        private bool ShortcutDown(ModOptions.Shortcut shortcut)
        {
            if (shortcut.Key == KeyCode.None)
            {
                return(false);
            }

            return(Input.GetKeyDown(shortcut.Key) &&
                   (shortcut.ModifierControl == m_ModifierCtrl) &&
                   (shortcut.ModifierShift == m_ModifierShift) &&
                   (shortcut.ModifierAlt == m_ModiferAlt));
        }