Archived

This topic is now archived and is closed to further replies.

jumble

Question about dinput

Recommended Posts

+AA_970+    122
Yes

Messages are always sent to you application no matter how you acquire direct input. As long as there's a window messages will be sent to it.

+AA_970+

Edited by - +AA_970+ on July 25, 2000 11:07:42 AM

Share this post


Link to post
Share on other sites
aanand_420    122
Well if u want 2 stop sending messages, don''t call GetMessage or PeekMessage. I mean don''t start message loop.
Well u figure out the side effects!


There is no problem so complicated that it cannot be complicated further.

Share this post


Link to post
Share on other sites
jumble    122
Ooppss... i dont think i made myself clear. I meant messages related to the device... e.g. if you aquired the keyboard, would you still get VK_SHIFT etc?

Anyway ive answered my own question by testing it... and the messages are still sent after aquiring the device. Thanks anyway.

And wouldn't the program crash / not work / cause general protection fault if the messages aren't processed?

Edited by - jumble on July 27, 2000 1:36:36 PM

Share this post


Link to post
Share on other sites
Gorky    122
If the keyboard (and especially mouse ) messages are still being sent, create a stub for them in you winProc. Have them do nothing other than tell windows, that you handled them.
If you let windows handle them, it will be slower.
This give no crashing and you should speed up the code. (Think of all those mouse move messages happening)

Share this post


Link to post
Share on other sites