SFML community forums

Help => Window => Topic started by: xylr117z4 on October 21, 2012, 03:00:03 am

Title: nvm a quick search answered my question.
Post by: xylr117z4 on October 21, 2012, 03:00:03 am
so I've been messing around with sfml 2.0 because I've seen it has a lot of features I could use for a program I'm working on.

I've come apon a question though, does the RenderWindow not count as a Window?
The reason I ask is that my program isn't properly updating the state of the joystick unless I use Joystick::update();
On the Documentation is says this only needs to be used if you don't currently have a window...


it should be included in the documentation of sf::Joystick that Update only needs to be used if there is no event loop... which I'm only missing due to testing 2.0.
Title: Re: nvm a quick search answered my question.
Post by: Laurent on October 21, 2012, 09:40:35 am
It's explained in the tutorial (which I forgot to re-upload after updating it) ;D

The doc says you need a window, not an event loop, but you can't have a window without an even loop (as explained in the window tutorial) so it's in fact equivalent.