protected void propagateOnTouch ( GVRPickedObject hit ) { if ( mEventOptions . contains ( EventOptions . SEND_TOUCH_EVENTS ) ) { GVREventManager eventManager = getGVRContext ( ) . getEventManager ( ) ; GVRSceneObject hitObject = hit . getHitObject ( ) ; if ( mEventOptions . contains ( EventOptions . SEND_TO_LISTENERS ) ) { eventManager . sendEvent ( this , ITouchEvents . class , "onTouchStart" , hitObject , hit ) ; } if ( mEventOptions . contains ( EventOptions . SEND_TO_HIT_OBJECT ) ) { eventManager . sendEvent ( hitObject , ITouchEvents . class , "onTouchStart" , hitObject , hit ) ; } if ( mEventOptions . contains ( EventOptions . SEND_TO_SCENE ) && ( mScene != null ) ) { eventManager . sendEvent ( mScene , ITouchEvents . class , "onTouchStart" , hitObject , hit ) ; } } }
Propagate onTouchStart events to listeners