Original Post
Hi, I am having some troubles with the multithreading and direct input / 3d. I have 2 threads, one dedicated to the rendering and another one to the update, the update thread is responsible to gather synchronously the input data at constant rate and schedule the other threads for the game logic. Till there, i'm all fine and it works great, but i m bumping into some issues with direct x. The d3d device is created in the same thread which creates the window since in fullscreen exclusive mode, it will fail somehow the resetdevice if i do differently (http://msdn2.microsoft.com/en-us/library/bb147224.aspx), unfortunately, i would need the input thread to be the same than the window one so the dinput will work properly which would end up having the input update in the render thread. Not what i want... Creating the dinput device in the update thread works fine apparently for gathering input, but the mouse acquire method will not show/hide the mouse cursor as it is supposed to do... Any suggestion? How can i work around that?