1
Window / sf::Mouse Coordinates relative to window but not locked inside window border?
« on: December 01, 2017, 03:29:42 am »
Is there a way to do this (title)? In glfw there is a way to get the coordinates of the mouse position without binding the mouse inside of the window border (glfw window not sfml window) or monitor edges. I know there is a function in the sf::RenderWindow class called setMouseCursorGrabbed(boolean) and that works to get the coordinates of the mouse relative to the window but it locks the mouse inside of some border.
If this isn't somehow manageable to do with sfml then how would one use the mouse callback from glfw with an sfml sf::RenderWindow?
If this isn't somehow manageable to do with sfml then how would one use the mouse callback from glfw with an sfml sf::RenderWindow?