Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bluehailex

Pages: [1]
1
Window / More Accurate Cursor Position System
« 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.

Pages: [1]