Example #1
0
 private static void SetMapping(KeyMapCategory category, ControllerType type, bool enabled)
 {
     if (Input.player == null || Input.player.controllers == null || Input.player.controllers.maps == null)
     {
         return;
     }
     Input.player.controllers.maps.SetMapsEnabled(enabled, type, category.ToString());
 }
Example #2
0
 private static void SetMapping(KeyMapCategory category, IEnumerable <ControllerType> types, bool enabled)
 {
     if (types == null)
     {
         return;
     }
     foreach (ControllerType type in types)
     {
         Input.SetMapping(category, type, enabled);
     }
 }
Example #3
0
 private static void SetMappingExclusive(KeyMapCategory exclusiveCategory)
 {
     ControllerType[] array = new ControllerType[3];
     RuntimeHelpers.InitializeArray(array, fieldof(< PrivateImplementationDetails >.$field - 3101DD 90CA740F799946B28E93662E644AFCB518).FieldHandle);
     ControllerType[] types = array;
     Input.SetMapping(KeyMapCategory.Chat, types, exclusiveCategory == KeyMapCategory.Chat);
     Input.SetMapping(KeyMapCategory.Default, types, exclusiveCategory == KeyMapCategory.Default);
     Input.SetMapping(KeyMapCategory.Menu, types, exclusiveCategory == KeyMapCategory.Menu);
     Input.SetMapping(KeyMapCategory.Inventory, types, exclusiveCategory == KeyMapCategory.Inventory);
     Input.SetMapping(KeyMapCategory.Book, types, exclusiveCategory == KeyMapCategory.Book);
     Input.SetMapping(KeyMapCategory.RadialWorld, types, exclusiveCategory == KeyMapCategory.RadialWorld);
 }