override public bool EndCapture(InputEvent e)
 {
     return(base.EndCapture(e));
 }
Exemple #2
0
 override public bool WantsCapture(InputEvent e)
 {
     return(Enabled && HasGO(e.hit.hitGO));
 }
Exemple #3
0
 override public bool BeginCapture(InputEvent e)
 {
     return(true);
 }
 override public bool UpdateCapture(InputEvent e)
 {
     return(true);
 }
 virtual public void custom_update_capture(InputEvent e)
 {
 }
 virtual public void custom_end_capture(InputEvent e)
 {
 }
 // subclass can implement these to add custom behaviors
 virtual public bool custom_begin_capture(InputEvent e, GameObjectRayHit hit)
 {
     return(false);
 }
 protected virtual void onSliderbarClick(InputEvent e, Vector3f hitPosW)
 {
     FUtil.SafeSendEvent(OnClicked, this, e);
 }
        protected virtual void onSliderBarPressDrag(InputEvent e, Vector3f hitPosW)
        {
            double t = get_slider_tx(hitPosW);

            update_value(t, true);
        }
 protected virtual void onHandlePress(InputEvent e, Vector3f hitPosW)
 {
     FUtil.SafeSendEvent(OnValueChangeBegin, this, snapped_value);
 }
 virtual public bool WantsCapture(InputEvent e)
 {
     return(Widgets.ContainsKey(e.hit.hitGO));
 }