Example #1
0
		/// <summary>
		/// Dispatch the given PInputEvent to the given pick path.
		/// </summary>
		/// <param name="e">A PInputEventArgs that contains the event data.</param>
		/// <param name="type">The type of PInputEvent being dispatched.</param>
		/// <param name="path">The pick path to which the PInputEvent will be dispatched.</param>
		public virtual void DispatchToPath(PInputEventArgs e, PInputType type, PPickPath path) {
			if (path != null) {
				//set the type and clear the handled bit since the same event object is
				//used to send multiple events such as mouseEntered/mouseExited and mouseMove.
				e.Type = type;
				e.Handled = false;

				path.ProcessEvent(e);
			}
		}