How to get the exact mouse coordinates relative to an image drawn on a window ? · Issue #1281 · ocornut/imgui · GitHub
SDL_GetMouseState() seems to give raw mouse position when using SDL_RenderSetLogicalSize() · Issue #1397 · libsdl-org/SDL · GitHub
![c++ - How do I get my cursor's position with respect to the window using graphics.h? - Stack Overflow c++ - How do I get my cursor's position with respect to the window using graphics.h? - Stack Overflow](https://i.stack.imgur.com/lrEkZ.png)