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.


Messages - imcit

Pages: [1]
1
General / Re: [SFML 2.0] Getting mouse input/coordinates
« on: July 14, 2012, 10:05:59 pm »
To be a bit more precise, it's now sf::Mouse::getPosition().y, if it should be relative to your screen resolution and sf::Mouse::getPosition(window).y, if it should be relative to your window, were window is of type sf::RenderWindow.

Here's the link to the documentation.

Thanks, I don't know why that didn't work the first time I tried it.

2
General / [SFML 2.0] Getting mouse input/coordinates
« on: July 14, 2012, 08:43:31 pm »
Well, I'm trying to learn SFML, and I see that it used to be possible to do write:

"window->GetInput().GetMouseY();" 

but in 2.0, I can't see a replacement. 

Anyone care to let me know how I can get this same information in 2.0?

Pages: [1]