public virtual void OnCursorMoved( 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.
CursorMovedHandler handler = CursorMoved;
if ( handler != null )
handler( cursorPos );
}