/* Checks if the key is in the mutex or not, as certain inputs cannot be overlapped * */ private void VerifyAndUpdateMutex(KeyCode keyIn) { // if the current keycode is bound to an existing action List <ControlAction> foundActions = GlobalInputController.GetActionForKey(keyIn); foreach (ControlAction controlAction in foundActions) { if (this.InputMutex.MutuallyExclusiveActions.Contains(controlAction) && controlAction != InputAction) // verify that we are not infinitely swapping the current action { MessageServer.SendMessage(MessageID.EDIT_SWAP, new Message((int)c_controllerData.k, (uint)controlAction)); } } }