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

Author Topic: More Accurate Cursor Position System  (Read 1987 times)

0 Members and 1 Guest are viewing this topic.

bluehailex

  • Newbie
  • *
  • Posts: 1
    • View Profile
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
More Accurate Cursor Position System
« Reply #1 on: November 19, 2011, 11:30:19 am »
It is fixed in SFML 2.
Laurent Gomila - SFML developer