0
我尝试获取Monogame中触摸的坐标。 TouchPanel.DisplayWidth
和TouchPanel.DisplayHeight
返回正确的值(1919 x 1080)。 但是,touchLocation的位置是720p分辨率内的坐标。这里的代码:Monogame触摸位置坐标与触摸屏分辨率不匹配
TouchCollection touchCollection = TouchPanel.GetState();
foreach (TouchLocation tl in touchCollection)
{
if (tl.State == TouchLocationState.Pressed)
{
Vector2 position = tl.Position;
...
有人可以告诉我为什么TouchPanel分辨率是不一样的tl.position使用的分辨率?有没有办法来解决这个问题?