Should be easely possible to add a directinput Keyboard funtion to examine and capture in memory all the complete keyboard status matrix and work with it?
It would avoid to call lot of times to KeyboardPushed() function inside a loop.
I just requested for a keyboard function which dump the keyboard status to a 128-bit variable.
A 128-bit variable (memory address) would be enough for all keyboard keys (a bit, a key) to see whether a key is pushed or not.
Psychophanta wrote:Should be easely possible to add a directinput Keyboard funtion to examine and capture in memory all the complete keyboard status matrix and work with it?
No need for DirectInput.. Use GetKeyboardState_() API command.
According to API Guide, "The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer."