Original Post
Hi! I'm new at this great forum, so this is my first post. Hi everyone!! :D I'm quite familiar with DirectInput setting up (creating DirectInput interface, creating devices, ...) but I really don't know what to do about Windows message queue. If I use DirectInput for managing user input, does it mean that I have to completely forget about managing Windows messages? Should I not call TranslateMessage and DispatchMessage?? An example: while (1) { if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if(msg.message == WM_QUIT) break; TranslateMessage(&msg); DispatchMessage(&msg); ProcessKBInput(); Render(); } else { } } Here I manage keyboard input with ProcessKBInput() function and manage Direct3D stuff with Render() function. My other question is: are ProcessKBInput() and Render() calls well where they are? Should I move them to the "else" part of the loop? Where should I call this functions? I hope was clear. Thank you very much for your help! Keep up this good work!! ;)