SFML community forums

Help => Window => Topic started by: bluehailex on November 18, 2011, 11:47:35 pm

Title: More Accurate Cursor Position System
Post by: bluehailex on November 18, 2011, 11:47:35 pm
For some reason, whenever the cursor is out of the window (SFML 1.6), it will stop returning a legitimate cursor position when I use sf::Window::Input::GetMouseX() or Y(). When I have the cursor in a position that is, say, (-50, -50) relative to the window, GetMouseX() and GetMouseY() will usually give me something close to (0,0), but never going negative.

Is there a way to get the window to update the cursor position even when it is out of the windows boundaries? sf::Window::Input::GetMouseX() is supposed to return an int, so the value returned can be negative.
Title: More Accurate Cursor Position System
Post by: Laurent on November 19, 2011, 11:30:19 am
It is fixed in SFML 2.