PointerReleased() 공개 메소드

public PointerReleased ( ) : void
리턴 void
예제 #1
0
    // Necessary input processing that is required
    // if the control is disabled:
    protected void DoNeccessaryInput(ref POINTER_INFO ptr)
    {
        switch (ptr.evt)
        {
        case POINTER_INFO.INPUT_EVENT.NO_CHANGE:
            if (list != null && ptr.active)
            {
                list.ListDragged(ptr);
            }
            break;

        case POINTER_INFO.INPUT_EVENT.DRAG:
            if (list != null && !ptr.isTap)
            {
                list.ListDragged(ptr);
            }
            break;

        case POINTER_INFO.INPUT_EVENT.TAP:
        case POINTER_INFO.INPUT_EVENT.RELEASE:
        case POINTER_INFO.INPUT_EVENT.RELEASE_OFF:
            if (list != null)
            {
                list.PointerReleased();
            }
            break;
        }

        // Apply any mousewheel scrolling to our list:
        if (list != null && ptr.inputDelta.z != 0 && ptr.type != POINTER_INFO.POINTER_TYPE.RAY)
        {
            list.ScrollWheel(ptr.inputDelta.z);
        }

        if (Container != null)
        {
            ptr.callerIsControl = true;
            Container.OnInput(ptr);
        }
    }
예제 #2
0
    // Necessary input processing that is required
    // if the control is disabled:
    protected void DoNeccessaryInput(ref POINTER_INFO ptr)
    {
        switch (ptr.evt)
        {
        case POINTER_INFO.INPUT_EVENT.NO_CHANGE:
        case POINTER_INFO.INPUT_EVENT.DRAG:
            list.ListDragged(ptr);
            break;

        case POINTER_INFO.INPUT_EVENT.TAP:
        case POINTER_INFO.INPUT_EVENT.RELEASE:
        case POINTER_INFO.INPUT_EVENT.RELEASE_OFF:
            list.PointerReleased();
            break;
        }

        if (Container != null)
        {
            ptr.callerIsControl = true;
            Container.OnInput(ptr);
        }
    }