Skip to main content
New Participant
September 29, 2022

Input field not working with Interaction SDK

I'm using the brand new Interaction SDK with Meta Quest 2, but there is something that is not working at all: input field typing. Nor editor or PC build, input fields (TextMesh or legacy) are not receiving typing from my hardware keyboard.

 

I'm using the ray interaction system to select to input field.

    This topic has been closed for replies.

    2 replies

    CafeSingularity
    Participant
    September 20, 2023

    It appears that the PointableCanvasModule.cs is missing a method for keyboard input. To resolve this, you can reference OVRInputModule.cs and transplant the SendUpdateEventToSelectedObject() method into the Process() function. This should help ensure that keyboard input functions correctly.

    public override void Process()
    {
          SendUpdateEventToSelectedObject();
    
          ProcessPointers(_pointersForDeletion, true);
          ProcessPointers(_pointerMap.Values, false);
    }
    
    private bool SendUpdateEventToSelectedObject()
    {
           if (eventSystem.currentSelectedGameObject == null) return false;
    
           var data = GetBaseEventData();
           ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, ExecuteEvents.updateSelectedHandler);
           return data.used;
    }

     

    robertcoomber
    Up and Coming
    January 6, 2024

    This works great!