KeyPressed() Question

I want to turn off the auto-repeat option so that when someone holds down a keyboard key it only processes the event one time. In other words, when someone presses and holds down the 'C' key on the keyboard I do not want it to enter multiple 'C's, just one.

I have not run across how to do this anywhere on the net and any help would of course be appreciated...
[390 byte] By [shoenigman] at [2007-11-20 10:57:56]
# 1 Re: KeyPressed() Question
If you're looking at KeyEvents, there is a KeyPressed event and a KeyReleased event and maybe a KeyTyped event. Have you tried ignoring all events for a key following the first KeyPressed event, until you get a KeyReleased event for it?

The voyage of discovery is not in seeking new landscapes but in having new eyes...
M. Proust
dlorde at 2007-11-10 2:14:16 >
# 2 Re: KeyPressed() Question
Thanks again... I just ignore the keyPressed event and process the keyReleased event. I guess I just needed to step away from the code for awhile. Anyway, thanks!
shoenigman at 2007-11-10 2:15:19 >