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

Author Topic: What do I use instead of RenderWindow.Events with SFML1.6?  (Read 4052 times)

0 Members and 1 Guest are viewing this topic.

Wibbs

  • Newbie
  • *
  • Posts: 40
    • View Profile
What do I use instead of RenderWindow.Events with SFML1.6?
« on: July 05, 2010, 09:31:51 pm »
Hey all,

I've just update SFML to 1.6, and it seems that the RenderWindow class no longer has an Events member.  I was accessing this to get an array containing all of the window events that needed to be processed.  Is there an equivalent in 1.6, and if not then what am I supposed to use?  It seems that the c++ library has a function GetEvent for the Window class, but I can't see an equivalent with the .Net version...
Thanks,

Wibbs

Wibbs

  • Newbie
  • *
  • Posts: 40
    • View Profile
What do I use instead of RenderWindow.Events with SFML1.6?
« Reply #1 on: July 05, 2010, 10:06:48 pm »
Well, I've rewritten my main loop to use DispatchEvents and event handlers, but would still like to know if it's possible to access the events before they're dispatched...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What do I use instead of RenderWindow.Events with SFML1.6?
« Reply #2 on: July 05, 2010, 10:33:15 pm »
DispatchEvents is the only way to handle events in SFML 1.6.

What would you need the GetEvent function for?
Laurent Gomila - SFML developer

Wibbs

  • Newbie
  • *
  • Posts: 40
    • View Profile
What do I use instead of RenderWindow.Events with SFML1.6?
« Reply #3 on: July 06, 2010, 02:59:51 pm »
Thanks for the reply on this.  On reflection I think that DispatchEvents will do everything I need it to, and it actually makes my code a lot cleaner.

Wibbs

 

anything