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

Author Topic: nvm a quick search answered my question.  (Read 1957 times)

0 Members and 1 Guest are viewing this topic.

xylr117z4

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
nvm a quick search answered my question.
« 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.
« Last Edit: October 21, 2012, 03:03:28 am by xylr117z4 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: nvm a quick search answered my question.
« Reply #1 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.
Laurent Gomila - SFML developer