Esempio n. 1
0
 public static void bind(byte index, KeyCode key)
 {
     if (index == ControlsSettings.HUD)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = 278;
         }
     }
     else if (index == ControlsSettings.OTHER)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = 306;
         }
     }
     else if (index == ControlsSettings.TERMINAL)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = 96;
         }
     }
     else if (index == ControlsSettings.REFRESH_ASSETS && ControlsSettings.isTooImportantToMessUp(key))
     {
         key = 280;
     }
     if (ControlsSettings.bindings[(int)index] == null)
     {
         ControlsSettings.bindings[(int)index] = new ControlBinding(key);
         return;
     }
     ControlsSettings.bindings[(int)index].key = key;
 }
Esempio n. 2
0
 // Token: 0x0600310E RID: 12558 RVA: 0x0013FFD4 File Offset: 0x0013E3D4
 public static void bind(byte index, KeyCode key)
 {
     if (index == ControlsSettings.HUD)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = KeyCode.Home;
         }
     }
     else if (index == ControlsSettings.OTHER)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = KeyCode.LeftControl;
         }
     }
     else if (index == ControlsSettings.TERMINAL)
     {
         if (ControlsSettings.isTooImportantToMessUp(key))
         {
             key = KeyCode.BackQuote;
         }
     }
     else if (index == ControlsSettings.REFRESH_ASSETS && ControlsSettings.isTooImportantToMessUp(key))
     {
         key = KeyCode.PageUp;
     }
     if (ControlsSettings.bindings[(int)index] == null)
     {
         ControlsSettings.bindings[(int)index] = new ControlBinding(key);
         return;
     }
     ControlsSettings.bindings[(int)index].key = key;
 }