Hi, I found a workaround, do not use pointerInput.Default.SpatialPointer0.ReadValue();
Use the code bellow:
void OnEnable()
{
pointerInput ??= new PointerInput();
if(pointerInput != null)
{
pointerInput.Enable();
pointerInput.Default.SpatialPointer0.performed += SpatialPointer0Performed;
pointerInput.Default.SpatialPointer1.performed += SpatialPointer1Performed;
}
}
void OnDisable()
{
if (pointerInput != null)
{
pointerInput.Default.SpatialPointer0.performed -= SpatialPointer0Performed;
pointerInput.Default.SpatialPointer1.performed -= SpatialPointer1Performed;
pointerInput.Disable();
}
}
Hope this can help.