Advertisement

DirectInput: Keyboard buffer array...

Started by December 18, 2002 05:26 AM
1 comment, last by Zoomby 21 years, 11 months ago
hi! Keyboard: How excactly is the the buffer array which is used with DirectInput altered? I think the 256 ints in the buffer represent ascii chars, but what value do they have? bye chris
they are not ascii codes, they are keymaps more or less, but the values it fills the array with also tell whether the key is pushed or not. You''ll really have to read the SDK documentation to understand this one. Look in the tutorials under DirectInput.

~Vendayan
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
Advertisement
Think of eack entry in the array as a flag.
Each flag will change state depending on whether the corresponding key is currently down or up.
<a href="http://www.purplenose.com>purplenose.com

This topic is closed to new replies.

Advertisement