private void StopPollInput() { this._pollInput = false; base.enabled = false; if (LocalPlayer.Inventory) { LocalPlayer.Inventory.enabled = true; } InputMappingAction.SetJoystickMenuMap(true); }
private void StartPollInput() { if (!base.enabled && this._nextChangeTimer < Time.realtimeSinceStartup) { base.enabled = true; this._pollInput = true; if (LocalPlayer.Inventory) { LocalPlayer.Inventory.enabled = false; } if (Input.player != null) { InputMappingAction.SetJoystickMenuMap(false); } } }
private void InitializeUI(bool resetScrollView) { this.ClearUI(resetScrollView); if (!this._mappingManager) { this._mappingManager = UnityEngine.Object.FindObjectOfType <InputMapping>(); } this._actionRowMappingCount = new Dictionary <InputActionRow, int>(); this._knownActionMaps = new Dictionary <ActionElementMap, InputActionButton>(); this.ShowUserAssignableActions(); this._nextChangeTimer = Time.realtimeSinceStartup + this._interChangeDelay; base.enabled = false; ReInput.ControllerConnectedEvent -= this.OnControllerConnectedEvent; ReInput.ControllerConnectedEvent += this.OnControllerConnectedEvent; ReInput.ControllerDisconnectedEvent -= this.OnControllerConnectedEvent; ReInput.ControllerDisconnectedEvent += this.OnControllerConnectedEvent; InputMappingAction.SetJoystickMenuMap(true); if (resetScrollView) { this._scrollView.ResetPosition(); this._scrollbar.value = 0f; } }