Exemplo n.º 1
0
        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 = "";
 }
Exemplo n.º 3
0
        private void AddMouseHoldTriggerToList(Trigger trigger)
        {
            var mouseHoldTrigger  = (MouseHoldTrigger)trigger;
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetMouseHoldTrigger(mouseHoldTrigger.Button, triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
Exemplo n.º 4
0
        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();
 }
Exemplo n.º 7
0
        private void AddKeyTriggerToList(Trigger trigger)
        {
            var newKeyTrigger     = (KeyTrigger)trigger;
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetKeyTrigger(newKeyTrigger.Key, newKeyTrigger.State,
                                                triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
Exemplo n.º 8
0
        private void AddMouseTriggerToList(Trigger trigger)
        {
            var newMouseTrigger   = (MouseButtonTrigger)trigger;
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetMouseButtonTrigger(newMouseTrigger.Button, newMouseTrigger.State,
                                                        triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
Exemplo n.º 9
0
        private void AddGamePadTriggerToList(Trigger trigger)
        {
            var newGamepadTrigger = (GamePadButtonTrigger)trigger;
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetGamePadTrigger(newGamepadTrigger.Button, newGamepadTrigger.State,
                                                    triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
Exemplo n.º 10
0
		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();
 }
Exemplo n.º 12
0
		//ncrunch: no coverage start
		public void CreateNewTriggerBox(CommandList commandList, string selectedCommandInList,
			TriggerLayoutView newTrigger)
		{
			trigger = newTrigger;
			availableCommands = commandList;
			selectedCommand = selectedCommandInList;
			FillBoxWithInputKeysWithKeyEnum();
			FillBoxWithInputTypeEnum();
			FillBoxWithInputStateEnum();
			SetSelectedItem();
		}
 //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();
 }
Exemplo n.º 15
0
        public void AddNewTrigger()
        {
            if (string.IsNullOrEmpty(SelectedCommand))
            {
                return;
            }
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.CreateNewTriggerBox(availableCommands, SelectedCommand,
                                                      triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
            RaisePropertyChanged("TriggerList");
        }
Exemplo n.º 16
0
		private void AddKeyTriggerToList(Trigger trigger)
		{
			var newKeyTrigger = (KeyTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetKeyTrigger(newKeyTrigger.Key, newKeyTrigger.State,
				triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
Exemplo n.º 17
0
		private void AddMouseHoldTriggerToList(Trigger trigger)
		{
			var mouseHoldTrigger = (MouseHoldTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetMouseHoldTrigger(mouseHoldTrigger.Button, triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
Exemplo n.º 18
0
		private void AddMouseMovementTriggerToList()
		{
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetMouseMovementTrigger(triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
Exemplo n.º 19
0
		private void AddGamePadTriggerToList(Trigger trigger)
		{
			var newGamepadTrigger = (GamePadButtonTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetGamePadTrigger(newGamepadTrigger.Button, newGamepadTrigger.State,
				triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
Exemplo n.º 20
0
		private void AddTouchPadTriggerToList(Trigger trigger)
		{ 
			var newTouchpadTrigger = (TouchPressTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetTouchPadTrigger(newTouchpadTrigger.State, triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		} 
Exemplo n.º 21
0
		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();
		}
Exemplo n.º 22
0
		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 = "";
		}
Exemplo n.º 23
0
		public void SetMouseMovementTrigger(TriggerLayoutView newTrigger)
		{
			trigger = newTrigger;
			FillBoxWithInputTypeEnum();
			trigger.TriggerType.SelectedItem = InputType.MouseMovement.ToString();
			trigger.TriggerKey.SelectedItem = "";
			trigger.TriggerState.SelectedItem = "";
		}
Exemplo n.º 24
0
		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();
		}
Exemplo n.º 25
0
		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();
		}
Exemplo n.º 26
0
		private void AddMouseTriggerToList(Trigger trigger)
		{ 
			var newMouseTrigger = (MouseButtonTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetMouseButtonTrigger(newMouseTrigger.Button, newMouseTrigger.State,
				triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}