09-29-2022 02:47 PM
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.
09-20-2023 05:00 AM
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;
}
01-05-2024 07:03 PM
This works great!