How do I get the mouse position of a specific display screen?

Godot Version

4.4

Question

Hello,
Currently trying to get the mouse position within a specific display screen.
I’m using

DisplayServer.mouse_get_position()

to get the mouse position but it is getting the position for both my displays which is fine and expected but I would like it to function more like the mouse position with viewport where the viewport functions as the the vector grids “default area” (upper left is 0,0 regardless) so to speak. How do i go about selecting a display and getting my mouse to change its coordinates based on it.
I know I can get the screen count and current screen with

DisplayServer.get_screen_count()
DisplayServer.window_get_current_screen()

but

DisplayServer.window_get_current_screen().mouse_get_position()

doesn’t seem to work and gives me the error
"Cannot find member “mouse_get_position” in base “int”

Thank you!

mouse_get_position() returns the position in screen coords, and DisplayServer.get_window_at_screen_position() will tell you what window that’s on.

Screen coordinates are unified, I believe; all the displays are mapped onto one big virtual desktop that is “the screen”.

shoot, I though there could be something to make the monitor display work like the viewport :^( thank you though, guess I’m going to be doing some math :B

There easily could be, but if there is I’m not aware of it.