get input coordinate relative to viewport.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abdullahzubair109
:warning: Old Version Published before Godot 3 was released.

suppose I have setup my project width is 1920.if I lower my display resolution to 1600 * 900, then OS.get_screen_size() returns 1600 * 900, but if I click mouse near right screen edge, it says 19218 or 19. How to adjust input coordinate with display resolution,???