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!