1
Window / Re: mouse position relative to window
« on: February 16, 2021, 02:58:22 pm »Code works for me(Windows), I think it's bug so should be reported - https://github.com/SFML/SFML/issuesHi, ok thx for testing.
I'm on Fedora 33.
If you deal in screen resolution, everything will be relative to the top left corner of the screen. What you want to do is, calculate the position relative to the window position.As Kvaz1r said my code works on windows so its not a code problem its an OS problem since i'm on fedora 33.
As such take the window position, calculate the wanted offset to your window and set the mouse cursor position to that.