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

Author Topic: Calling GetEvent() from another thread  (Read 1569 times)

0 Members and 1 Guest are viewing this topic.

MrGretchev

  • Newbie
  • *
  • Posts: 1
    • View Profile
Calling GetEvent() from another thread
« on: May 13, 2010, 10:16:39 pm »
I was just wondering if it is possible to call the GetEvent() method for a window in a different thread than the one where the object was created, and if so, how?

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Calling GetEvent() from another thread
« Reply #1 on: May 13, 2010, 10:25:31 pm »
On Windows this is not possible. I don't know about other OSes.
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Calling GetEvent() from another thread
« Reply #2 on: May 14, 2010, 06:25:45 pm »
On Mac OS X this is not possible too, moreover the event handling must not be done only in the same thread, but also in the *main* thread.
Want to play movies in your SFML application? Check out sfeMovie!