private bool ShortcutUp(ModOptions.Shortcut shortcut) { if (shortcut.Key == KeyCode.None) { return(true); } return(Input.GetKeyUp(shortcut.Key)); }
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)); }