Results 1 to 3 of 3

Thread: Keyboard problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    2

    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.)

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    You cant win in this situation. It all depends on how your keyboard is wired. Its a hardware problem.

    Z.

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    Kentucky
    Posts
    21

    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
  •  



Click Here to Expand Forum to Full Width