RegisterCallbackForGesture() public method

public RegisterCallbackForGesture ( NIGestureTracker, eventDelegate, string axisName ) : void
eventDelegate NIGestureTracker,
axisName string
return void
Esempio n. 1
0
 /// The mono-behavior update
 public void Update()
 {
     if (m_initialized == false)
     {
         // we do it here to make sure the axis is initialized!
         m_input.RegisterCallbackForGesture(InternalCallback, "FireExample");
         m_initialized = true;
     }
 }
Esempio n. 2
0
 /// This method allows us to register for a callback for the clicking
 /// @note it is the responsibility of the caller to unregister using @ref UnRegisterCallbackForGesture
 /// @param eventDelegate the delegate to be called
 public override void RegisterCallbackForGesture(NIGestureTracker.GestureEventHandler eventDelegate)
 {
     m_input.RegisterCallbackForGesture(eventDelegate, "NIGUI_CLICK");
 }