Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Keyboard


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 Tuan   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 October 1999 - 11:34 AM


Could anyone show me how to program the keyboard to be able to receive many key press in combat game(like Mortal Combat)? Rightnow, the system will generate beep sound when many keys pressed (depending on the set of keys, sometimes 4 keys, sometimes 8 keys, ...)at the same time.

Any help would be appreciated.
Thanks in advance!


Sponsor:

#2 todderod   Members   -  Reputation: 152

Like
Likes
Like

Posted 11 October 1999 - 03:05 AM

I can't give code away right now since I do not remember it completely but DirectInput will fix it for you if you aquire it exclusivly. The Microsoft DirectX doc's explain pretty good on how to set up such a thing. But mail me if you want some code.

Christoffer Sandberg
todderod@algonet.se


#3 Tuan   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 October 1999 - 05:47 PM

Thanks for your message. I tried but I can't get the event although system doesn't generate beep sound. (I pressed ASDFJKL (hold them) and then the key state didn't change any more when press any key). Could you help me to resolve this problem?

Thanks again.


#4 foofightr   Members   -  Reputation: 130

Like
Likes
Like

Posted 12 October 1999 - 08:09 AM

This is not a problem with DirectInput or its driver or anything. It's the way some keyboard controllers (8042) work (the chip inside the keyboard that handles keyboard events). Some of them don't accept further input when a certain amount of keys are held down (or when certain keys are held down, others are not available).

And there ain't nothing you or DirectInput can do about it


#5 todderod   Members   -  Reputation: 152

Like
Likes
Like

Posted 12 October 1999 - 11:25 AM

Unfortunately so I noticed when I tryed to doing a little app that tested this. ;y keybord stopped at four keys beingpressed at the same time.

It was just that after reading a little in DirectInput 6.0 docs I was left to belive that it was possible (leaving all keyboard buffers that run full and so on behind), but the fact that a chip in the keyboard was so limiting, I had no idea.

Christoffer Sandberg
todderod@algonet.se


#6 foofightr   Members   -  Reputation: 130

Like
Likes
Like

Posted 12 October 1999 - 11:34 AM

Well, my keyboard stops at around 10 (or maybe I ran out of fingers!) so it's not that bad. But, there are certain keys that "lock out" others no matter what. Very frustrating when you're playing an FPS which requires you to press many keys at once while controlling your character..

I have a little test program I can send you that interactively tells you how many keys are pressed. I was able to press keys 1 thru 0 giving me 10 keys at once.. This way you can spot which keys block others out (if any).

Oh and it's a realmode dos program that hooks the keyboard interrupt, so it's more "raw" than DirectInput.

[This message has been edited by foofightr (edited October 12, 1999).]





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS