Archived

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

TookH

Keyboard 'flickering'

Recommended Posts

TookH    122
In my project I'm trying to use the keyboard with DirectInput7. When it runs all the keys seem to randomly flicker between being pressed and not being pressed. If I alt-tab out of the program and then back, everything begins to work fine. I've tryed to emulate this by using ShowWindow( SW_MINIMIZE) and ShowWindow( SW_SHOWNORMAL ) at the start of the program, but it doesn't help. I can't figure out why the input doesn't work until I alt-tab. To see for yourself, click here and download TileEd (73kb). Unzip it into your project directory. When you run it you might see a flickering circle moving to the left. If you don't, adjust the "if (keyboard.KeyDown( DIK_Q )) posx -= 20;" in WinMain to a smaller value so the circle moves slower. Please, someone help me with this. Edited by - TookH on February 7, 2002 5:35:24 PM

Share this post


Link to post
Share on other sites
ZealousElixir    256
I'm betting this is an acquiring issue (or it could be that you need to memset your keyboard buffer to 0 because it's filled with junk).

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

EDIT: added another suggestion.

Edited by - zealouselixir on February 7, 2002 10:34:00 PM

Share this post


Link to post
Share on other sites