Example #1
0
    public void OnSourceLost(SourceStateEventData eventData)
    {
        //if the source lost is the current hand source
        if (currentInputEventData != null && eventData.SourceId == currentInputEventData.SourceId)
        {
            isScaling = false;
            mainCursor.OnInputUp(currentInputEventData);
            currentInputEventData = null;

            // Remove self as a modal input handler
            InputManager.Instance.PopModalInputHandler();
        }
    }
Example #2
0
    public void OnSourceLost(SourceStateEventData eventData)
    {
        if (currentInputSource != null && eventData.SourceId == currentInputSourceId)
        {
            Debug.Log("sourceLost");
            isRotating = false;

            // Remove self as a modal input handler
            InputManager.Instance.PopModalInputHandler();

            mainCursor.OnInputUp(inputEventData);
            inputEventData     = null;
            currentInputSource = null;
        }
    }
Example #3
0
    public void OnSourceLost(SourceStateEventData eventData)
    {
        //Debug.Log("Source Lost");
        //if the source lost is the current hand source
        if (currentInputSource != null && eventData.SourceId == currentInputSourceId)
        {
            //get the main cursor back if not the case
            mainCursor.SetVisiblity(true);
            mainCursor.OnInputUp(currentInputEventData);
            drawingCursor.SetActive(false);

            // Remove self as a modal input handler
            InputManager.Instance.PopModalInputHandler();
        }
    }