Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Calling GetEvent() from another thread
Print
Pages: [
1
]
Author
Topic: Calling GetEvent() from another thread (Read 2193 times)
0 Members and 1 Guest are viewing this topic.
MrGretchev
Newbie
Posts: 1
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Ceylo
Hero Member
Posts: 2325
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.
Logged
Want to play movies in your SFML application? Check out
sfeMovie
!
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Calling GetEvent() from another thread