// Token: 0x0600184F RID: 6223 RVA: 0x00073D88 File Offset: 0x00071F88 private void InputMapperOnInputMappedEvent(InputMapper.InputMappedEventData inputMappedEventData) { Debug.Log("InputMapperOnInputMappedEvent"); InputMapperHelper.< > c__DisplayClass23_0 CS$ < > 8__locals1; CS$ < > 8__locals1.incomingActionElementMap = inputMappedEventData.actionElementMap; CS$ < > 8__locals1.incomingActionId = inputMappedEventData.actionElementMap.actionId; CS$ < > 8__locals1.incomingElementIndex = inputMappedEventData.actionElementMap.elementIndex; CS$ < > 8__locals1.incomingElementType = inputMappedEventData.actionElementMap.elementType; CS$ < > 8__locals1.map = inputMappedEventData.actionElementMap.controllerMap; foreach (ControllerMap controllerMap in this.maps) { if (controllerMap != CS$ < > 8__locals1.map) { controllerMap.DeleteElementMapsWithAction(CS$ < > 8__locals1.incomingActionId); } } while (InputMapperHelper.< InputMapperOnInputMappedEvent > g__DeleteFirstConflictingElementMap | 23_1 (ref CS$ < > 8__locals1)) { } MPEventSystem mpeventSystem = this.eventSystem; if (mpeventSystem != null) { LocalUser localUser = mpeventSystem.localUser; if (localUser != null) { localUser.userProfile.RequestSave(false); } } Debug.Log("Mapping accepted."); this.Stop(); }
private void OnInputMapped(InputMapper.InputMappedEventData data) { // Stop both mappers so they're no longer listening inputMapper_keyboard.Stop(); inputMapper_mouse.Stop(); // Handle cross device type binding replacement if (_replaceTargetMapping.controllerMap != null) // we have a replacement // Remove the replacement from the other map if the binding was made on the opposite device type { if (data.actionElementMap.controllerMap != _replaceTargetMapping.controllerMap) { _replaceTargetMapping.controllerMap.DeleteElementMap(_replaceTargetMapping.actionElementMapId); } } RedrawUI(); }
private void OnInputMapped(InputMapper.InputMappedEventData data) { RedrawUI(); }
private void OnInputMapped(InputMapper.InputMappedEventData data) { UpdateChildren(); }
private void OnInputMapped(InputMapper.InputMappedEventData data) { RedrawUI(ControllerMapKeyboard); RedrawUI(ControllerMapMouse); Debug.Log("Input Remapped"); }
private void OnInputMapped(InputMapper.InputMappedEventData data) { RedrawUI(); EventManager.TriggerEvent(InputEventTypes.SAVE_INPUT_MAP); }