Touch position return wrong data on Pixel 6 and Android 12. it does not occur unless the device is rotated from the initial state.
As far as I investigate, the touch position only return data from NDK
float x = FMath::Min<float>(AMotionEvent_getX(event, actionPointer) / Width, 1.f); x *= (ScreenRect.Right - 1); float y = FMath::Min<float>(AMotionEvent_getY(event, actionPointer) / Height, 1.f); y *= (ScreenRect.Bottom - 1);
expect : white square display on the touch position
result : display in the shifted place
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-140221 in the post.
2 |
Component | UE - Platform - Mobile |
---|---|
Affects Versions | 4.27 |
Created | Jan 26, 2022 |
---|---|
Resolved | Feb 21, 2024 |
Updated | Feb 21, 2024 |