Axiom.Samples.MousePicking.MouseSelector.MouseReleased C# (CSharp) Метод

MouseReleased() публичный Метод

public method to call when the mouse button is released
public MouseReleased ( SharpInputSystem evt, SharpInputSystem id ) : void
evt SharpInputSystem
id SharpInputSystem
Результат void
		public void MouseReleased( SharpInputSystem.MouseEventArgs evt, SharpInputSystem.MouseButtonID id )
		{
			if ( id == SharpInputSystem.MouseButtonID.Left && Selecting == true )
			{
				switch ( SelectionMode )
				{
					case SelectionModeType.SelectionBox:
						Log( "MouseSelector: " + _name + " selecting to bottom(" + _stop.x.ToString() + ";" + _stop.y.ToString() + ")" );
						PerformSelectionWithSelectionBox( _start, _stop );
						Selecting = false;
						_rect.IsVisible = false;
						Log( "MouseSelector: " + _name + " selection complete." );
						break;

					case SelectionModeType.MouseClick:
						PerformSelectionWithMouseClick();
						break;

				}
				Selecting = false;
			}
		}