Original Post
I'm trying to get input from the keyboard while a user types. I don't want to use cin as I don't want a console window up. However, as DirectX polls they keyboard every frame, if a user has their finger on a key for more than one frame, instead of getting the pressed key once, they get it multiple times e.g. pressing 'G' would result in GGGGGGGGGG. Is there anyway for DirectInput to only take the input once while the key is down until it is let up again? If not, is there another input alternative? Cheers.