コード例 #1
0
        private void AddMouseMovementTriggerToList()
        {
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetMouseMovementTrigger(triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
コード例 #2
0
 public void SetMouseMovementTrigger(TriggerLayoutView newTrigger)
 {
     trigger = newTrigger;
     FillBoxWithInputTypeEnum();
     trigger.TriggerType.SelectedItem  = InputType.MouseMovement.ToString();
     trigger.TriggerKey.SelectedItem   = "";
     trigger.TriggerState.SelectedItem = "";
 }
コード例 #3
0
        private void AddMouseHoldTriggerToList(Trigger trigger)
        {
            var mouseHoldTrigger  = (MouseHoldTrigger)trigger;
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.SetMouseHoldTrigger(mouseHoldTrigger.Button, triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
コード例 #4
0
        private void AddTouchPadTriggerToList(Trigger trigger)
        {
            var newTouchpadTrigger = (TouchPressTrigger)trigger;
            var triggerLayoutView  = new TriggerLayoutView();

            inputNewTriggerEditor.SetTouchPadTrigger(newTouchpadTrigger.State, triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
        }
コード例 #5
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 = "";
 }
コード例 #6
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();
 }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #10
0
		public void AddNewTrigger()
		{
			if (string.IsNullOrEmpty(SelectedCommand))
				return;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.CreateNewTriggerBox(availableCommands, SelectedCommand,
				triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
			RaisePropertyChanged("TriggerList");
		}
コード例 #11
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();
 }
コード例 #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();
		}
コード例 #13
0
 //ncrunch: no coverage start
 public void CreateNewTriggerBox(CommandList commandList, string selectedCommandInList,
                                 TriggerLayoutView newTrigger)
 {
     trigger           = newTrigger;
     availableCommands = commandList;
     selectedCommand   = selectedCommandInList;
     FillBoxWithInputKeysWithKeyEnum();
     FillBoxWithInputTypeEnum();
     FillBoxWithInputStateEnum();
     SetSelectedItem();
 }
コード例 #14
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();
 }
コード例 #15
0
        public void AddNewTrigger()
        {
            if (string.IsNullOrEmpty(SelectedCommand))
            {
                return;
            }
            var triggerLayoutView = new TriggerLayoutView();

            inputNewTriggerEditor.CreateNewTriggerBox(availableCommands, SelectedCommand,
                                                      triggerLayoutView);
            TriggerList.Add(triggerLayoutView);
            RaisePropertyChanged("TriggerList");
        }
コード例 #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);
		}
コード例 #17
0
		private void AddMouseHoldTriggerToList(Trigger trigger)
		{
			var mouseHoldTrigger = (MouseHoldTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetMouseHoldTrigger(mouseHoldTrigger.Button, triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
コード例 #18
0
		private void AddMouseMovementTriggerToList()
		{
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetMouseMovementTrigger(triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		}
コード例 #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);
		}
コード例 #20
0
		private void AddTouchPadTriggerToList(Trigger trigger)
		{ 
			var newTouchpadTrigger = (TouchPressTrigger)trigger;
			var triggerLayoutView = new TriggerLayoutView();
			inputNewTriggerEditor.SetTouchPadTrigger(newTouchpadTrigger.State, triggerLayoutView);
			TriggerList.Add(triggerLayoutView);
		} 
コード例 #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();
		}
コード例 #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 = "";
		}
コード例 #23
0
		public void SetMouseMovementTrigger(TriggerLayoutView newTrigger)
		{
			trigger = newTrigger;
			FillBoxWithInputTypeEnum();
			trigger.TriggerType.SelectedItem = InputType.MouseMovement.ToString();
			trigger.TriggerKey.SelectedItem = "";
			trigger.TriggerState.SelectedItem = "";
		}
コード例 #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();
		}
コード例 #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();
		}
コード例 #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);
		}