Axiom.Samples.MousePicking.MousePickingSample.KeyPressed C# (CSharp) Method

KeyPressed() public method

key pressed selection event to have the ability to keep the current selection, sets the MouseSelector.KeepPreviousSelection if the right or left control key is pressed
public KeyPressed ( SharpInputSystem evt ) : bool
evt SharpInputSystem KeyEventArgs
return bool
		public override bool KeyPressed( SharpInputSystem.KeyEventArgs evt )
		{
			if ( initialized )
			{
				if ( evt.Key == SharpInputSystem.KeyCode.Key_LCONTROL || evt.Key == SharpInputSystem.KeyCode.Key_RCONTROL )
				{
					_MouseSelector.KeepPreviousSelection = true;
				}
			}
			return base.KeyPressed( evt );
		}