Greetings!
I am writing an MFC-based app using DriectX and bypassing the Windows message pump. OK, its a game. Anyway, I use DirectInput for getting keyboard input, and for some reason, after about five minutes or so of using the arrow keys in the program, the PC speaker starts to make an annoying clicking noise. I assume that this is because the keyboard buffer is full, but how do I stop it? I really don't want to re-design things to process windows messages (and I'm not sure if this would help). I also don't want to disconnect my PC speaker (unless I absolutley have to). What I would like to know is this:
1. Is there any way of sending a command to the PC speaker, so that it will shut up? I have to believe there is, since there is the MessageBeep(0xFFFFFFFF) function that will make the speaker beep - so there has to be something to silence it, right?
OR...
2. Is there anyway that I can ask the keyboard buffer if it is full, and tell it to clear itself? Something like this might also work.
I am writing an MFC-based app using DriectX and bypassing the Windows message pump. OK, its a game. Anyway, I use DirectInput for getting keyboard input, and for some reason, after about five minutes or so of using the arrow keys in the program, the PC speaker starts to make an annoying clicking noise. I assume that this is because the keyboard buffer is full, but how do I stop it? I really don't want to re-design things to process windows messages (and I'm not sure if this would help). I also don't want to disconnect my PC speaker (unless I absolutley have to). What I would like to know is this:
1. Is there any way of sending a command to the PC speaker, so that it will shut up? I have to believe there is, since there is the MessageBeep(0xFFFFFFFF) function that will make the speaker beep - so there has to be something to silence it, right?
OR...
2. Is there anyway that I can ask the keyboard buffer if it is full, and tell it to clear itself? Something like this might also work.