Dear all
when i use PeekConsoleInput to get keyboard input of my console
program, it's lost many keys, any one can help me??
my code is
invoke FlushConsoleInputBuffer, hStd
invoke PeekConsoleInput, hStd, addr I_Struct, sizeof I_Struct, \
addr WriteBytes
cmp I_Struct.EventType, KEY_EVENT ;; if key event ??
jne nextkey ;; no , read next key
cmp I_Struct.KER.bKeyDown, FALSE ;; if release key ??
jz nextket ;; yes , read next key
mov I_Struct.EventType, 0 ;; clear key event status

mov ax, I_Struct.KER.wVirtualScanCode ; get scan code of the key

Posted on 2002-07-03 22:41:42 by jordanc
Maybe its because you flush the input?
Posted on 2002-07-04 00:40:32 by comrade
Hmm!! you can check out the attachment from here, it doesn't use PeekConsoleInput but it sures looks like the same thing your doing. I could be wrong. :o
Posted on 2002-07-04 00:48:04 by stryker