Getch() Problem: C vs D
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jan 9 12:12:38 PST 2017
On Monday, 9 January 2017 at 19:11:48 UTC, LouisHK wrote:
> No, that duplicate problem occurs even on normal keys, if I
> press "a" it shows "aa", and through the WinDBG, I saw the
> kbhit() was always true 2x after a key is pressed.
I think my lib returns on key *release* as well, since it
registers that on Windows.
Probably a bug, though I don't like using the getch function, I
usually use the full input stream.
More information about the Digitalmars-d-learn
mailing list