private void AddMouseMovementTriggerToList() { var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetMouseMovementTrigger(triggerLayoutView); TriggerList.Add(triggerLayoutView); }
public void SetMouseMovementTrigger(TriggerLayoutView newTrigger) { trigger = newTrigger; FillBoxWithInputTypeEnum(); trigger.TriggerType.SelectedItem = InputType.MouseMovement.ToString(); trigger.TriggerKey.SelectedItem = ""; trigger.TriggerState.SelectedItem = ""; }
private void AddMouseHoldTriggerToList(Trigger trigger) { var mouseHoldTrigger = (MouseHoldTrigger)trigger; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetMouseHoldTrigger(mouseHoldTrigger.Button, triggerLayoutView); TriggerList.Add(triggerLayoutView); }
private void AddTouchPadTriggerToList(Trigger trigger) { var newTouchpadTrigger = (TouchPressTrigger)trigger; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetTouchPadTrigger(newTouchpadTrigger.State, triggerLayoutView); TriggerList.Add(triggerLayoutView); }
public void SetMouseHoldTrigger(MouseButton newButton, TriggerLayoutView newTrigger) { trigger = newTrigger; FillBoxWithMouseEnum(); FillBoxWithInputTypeEnum(); trigger.TriggerType.SelectedItem = InputType.MouseHold.ToString(); trigger.TriggerKey.SelectedItem = newButton.ToString(); trigger.TriggerState.SelectedItem = ""; }
public void SetTouchPadTrigger(State newState, TriggerLayoutView newTrigger) { trigger = newTrigger; trigger.TriggerKey.Items.Clear(); FillBoxWithInputTypeEnum(); FillBoxWithInputStateEnum(); trigger.TriggerType.SelectedItem = InputType.Touchpad.ToString(); trigger.TriggerState.SelectedItem = newState.ToString(); }
private void AddKeyTriggerToList(Trigger trigger) { var newKeyTrigger = (KeyTrigger)trigger; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetKeyTrigger(newKeyTrigger.Key, newKeyTrigger.State, triggerLayoutView); TriggerList.Add(triggerLayoutView); }
private void AddMouseTriggerToList(Trigger trigger) { var newMouseTrigger = (MouseButtonTrigger)trigger; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetMouseButtonTrigger(newMouseTrigger.Button, newMouseTrigger.State, triggerLayoutView); TriggerList.Add(triggerLayoutView); }
private void AddGamePadTriggerToList(Trigger trigger) { var newGamepadTrigger = (GamePadButtonTrigger)trigger; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.SetGamePadTrigger(newGamepadTrigger.Button, newGamepadTrigger.State, triggerLayoutView); TriggerList.Add(triggerLayoutView); }
public void AddNewTrigger() { if (string.IsNullOrEmpty(SelectedCommand)) return; var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.CreateNewTriggerBox(availableCommands, SelectedCommand, triggerLayoutView); TriggerList.Add(triggerLayoutView); RaisePropertyChanged("TriggerList"); }
public void SetKeyTrigger(Key newKey, State newState, TriggerLayoutView newTrigger) { trigger = newTrigger; FillBoxWithInputKeysWithKeyEnum(); FillBoxWithInputTypeEnum(); FillBoxWithInputStateEnum(); trigger.TriggerType.SelectedItem = InputType.Keyboard.ToString(); trigger.TriggerKey.SelectedItem = newKey.ToString(); trigger.TriggerState.SelectedItem = newState.ToString(); }
//ncrunch: no coverage start public void CreateNewTriggerBox(CommandList commandList, string selectedCommandInList, TriggerLayoutView newTrigger) { trigger = newTrigger; availableCommands = commandList; selectedCommand = selectedCommandInList; FillBoxWithInputKeysWithKeyEnum(); FillBoxWithInputTypeEnum(); FillBoxWithInputStateEnum(); SetSelectedItem(); }
public void SetGamePadTrigger(GamePadButton newButton, State newState, TriggerLayoutView newTrigger) { trigger = newTrigger; FillBoxWithGamePadEnum(); FillBoxWithInputTypeEnum(); FillBoxWithInputStateEnum(); trigger.TriggerType.SelectedItem = InputType.Gamepad.ToString(); trigger.TriggerKey.SelectedItem = newButton.ToString(); trigger.TriggerState.SelectedItem = newState.ToString(); }
public void AddNewTrigger() { if (string.IsNullOrEmpty(SelectedCommand)) { return; } var triggerLayoutView = new TriggerLayoutView(); inputNewTriggerEditor.CreateNewTriggerBox(availableCommands, SelectedCommand, triggerLayoutView); TriggerList.Add(triggerLayoutView); RaisePropertyChanged("TriggerList"); }