Hello! I was trying to get the global position based on where the finger has touched on a mobile touchscreen, somewhat similar to the function:
get_global_mouse_position() where the mouse global position is captured. I thought this was done by using this code:
if event is InputEventScreenDrag:
touch_position = event.position
touch_position represents the Vector2() coordinates based on the event.position. Unfortunately though this only captures the position the finger is touching on the screen. Say that my resolution screen size is set at 400x224 pixels then I can only get the position in that range such as 345x120 or 20x200 pixel position. is there a better way to get the global position capture based on the position of the touchscreen resolution limit?