SFML community forums

Help => Window => Topic started by: Zweistein on October 28, 2010, 04:02:54 pm

Title: Input in the Mainthread
Post by: Zweistein on October 28, 2010, 04:02:54 pm
Hi,

I read somewhere that all Input have to be handled in the MainThread of the Program. Is that a SFML restriction or general for Windows?

I found this here and thought, that it should be possible: http://msdn.microsoft.com/en-us/library/ms682523(v=VS.85).aspx
Title: Input in the Mainthread
Post by: Laurent on October 28, 2010, 04:14:09 pm
Quote
I read somewhere that all Input have to be handled in the MainThread of the Program

Not the main thread, the thread where the window was created.

Quote
Is that a SFML restriction or general for Windows?

It seems to be a "standard" restriction, I think it happens on Windows, Linux and Mac OS X. There's a workaround on Linux, but it is not used in SFML for consistency reasons.