Jump to content
  • Advertisement


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

Keyboard 'flickering'

This topic is 5947 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!