Welcome! |
|
|
|
|
Site Forum |
|
|
|
|
|
Topic: DirectInput and Windows messages
|

|
| DirectInput and Windows messages |
| << Prev Topic | Next Topic >> |
| PezMutanT |
| Posted: 09-January-2008 at 6:57am | IP Logged
|
|
|
Newbie

Group: Newbie
Joined: 09-January-2008 Location: Spain Posts: 1
|
Hi! I'm new at this 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? 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 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!! ;)
|
Online Status: Offline
|
|
| |
| 1 User(s) are browsing this topic, 1 Guest(s) and 0 Member(s) |
| 0 Members: |
|
|
|
|
|
If you wish to post a reply to this topic you must first login If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|
This page was generated in 0.2031 seconds. |