|
-
Dec 25th, 2002, 08:52 PM
#1
Thread Starter
New Member
Keyboard problems
I am making a game that often requires keys to be held down or pressed simultaneously. I have discovered that if I hold down too many keys, some of them do not register and the motherboard(?) starts making clicking sounds, like I'm overloading something.
It seems that each key has a different value, and if the sum of the key values held down exceeds a certain threshold, the problem arises. I have mitigated this by choosing keys that tend to only contribute small amounts to the threshold, but am still running out of breathing space.
Can someone explain this problem to me, and any possible solutions? I have experienced this before, and it seems to even vary between keyboards. Can software solve the problem? Perhaps some improved drivers?
(I'm just using GetAsyncKeyState.)
-
Dec 25th, 2002, 09:03 PM
#2
Frenzied Member
You cant win in this situation. It all depends on how your keyboard is wired. Its a hardware problem.
Z.
-
Dec 25th, 2002, 10:41 PM
#3
Junior Member
Re: keyboard problem
The clicking sound you here is letting you know that the keyboard buffer is full already and that there's nowhere to store your ongoing keypresses.
You can do more advanced things with the keyboard if you use the API. I think the particular thing you're looking for is GetKeyState API.
You might wanna do a search on allapi.net regarding keyboard API calls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|