I try to get the coordinates of a touch in Monogame. TouchPanel.DisplayWidth
and TouchPanel.DisplayHeight
return the right values (1919 x 1080).
However the position of the touchLocation is a coordinate within a 720p resolution. Here's the code:
TouchCollection touchCollection = TouchPanel.GetState();
foreach (TouchLocation tl in touchCollection)
{
if (tl.State == TouchLocationState.Pressed)
{
Vector2 position = tl.Position;
...
Can anybody tell me why the TouchPanel resolution is not the same resolution the tl.position uses? Is there a way to fix this?