Nez.Portable/UI/Stage.cs
/// <summary>
/// Mouse or touch is being moved.
/// </summary>
/// <param name="inputPos">location of cursor</param>
/// <param name="over">element under cursor</param>
/// <param name="lastOver">element that was previously under the cursor</param>
Mouse or touch is being moved.
Mouse or touch is being moved .
void updateInputMoved(Vector2 inputPos, Element over, Element lastOver)
        {
            for (var i = _inputFocusListeners.Count - 1; i >= 0; i--)
                ((IInputListener)_inputFocusListeners[i]).onMouseMoved(
                    _inputFocusListeners[i].stageToLocalCoordinates(inputPos));
            if (over != lastOver)
            {
                (over as IInputListener)?.onMouseEnter();
                (lastOver as IInputListener)?.onMouseExit();
            }
        }
void updateInputMoved ( Vector2 inputPos , Element over , Element lastOver ) { for ( var i = _inputFocusListeners . Count - 1 ; i >= 0 ; i -- ) ( ( IInputListener ) _inputFocusListeners [ i ] ) . onMouseMoved ( _inputFocusListeners [ i ] . stageToLocalCoordinates ( inputPos ) ) ; if ( over != lastOver ) { ( over as IInputListener ) ? . onMouseEnter ( ) ; ( lastOver as IInputListener ) ? . onMouseExit ( ) ; } }
Mouse or touch is being moved.
Mouse or touch is being moved .
inputPos
Vector2
location of cursor
location of cursor
over
Element
element under cursor
element under cursor
lastOver
Element
element that was previously under the cursor
element that was previously under the cursor