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

Author Topic: Input in the Mainthread  (Read 2659 times)

0 Members and 1 Guest are viewing this topic.

Zweistein

  • Newbie
  • *
  • Posts: 29
    • View Profile
Input in the Mainthread
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Input in the Mainthread
« Reply #1 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.
Laurent Gomila - SFML developer