Axiom.Samples.Widget.OnCursorReleased C# (CSharp) Method

OnCursorReleased() public method

Raises the CursorReleased event.
public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2 current cursor position
return void
		public virtual void OnCursorReleased( Vector2 cursorPos )
		{
			// Make a temporary copy of the event to avoid possibility of
			// a race condition if the last subscriber unsubscribes
			// immediately after the null check and before the event is raised.
			CursorReleasedHandler handler = CursorReleased;
			if ( handler != null )
				handler( cursorPos );
		}