private void ToggleInverted(ControllerType inputType, bool value) { ControllerMap map = rewiredPlayer.controllers.maps.GetMap((int)inputType); if (map == null) { return; } ActionElementMap[] action = map.GetElementMaps(); foreach (ActionElementMap actionMap in action) { if (actionMap.actionId == (int)ACTIONS.VerticalLook) { actionMap.invert = value; } } }