Qbasicnews.com

Full Version: SDL keys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working in a console mode program to play chords (for a friend). I need multiple keys pressed at once. What do you suggest?

I know I can use SDL... Do I have to make the thing graphical? I want to stick to the console. If I can, how? What are other alternatives? Thanks Smile
Have you tried GetAsyncKeyState?
It will read multiple key presses... up to a point. I have held down a row and recieved about 5 seperate key returns at a single time.
GetKeyState is generally better. I don't know why the original header didn't come with it, but it does now. Big Grin GetAsyncKeyState is useful for trapping keypresses when your application doesn't have the focus, so it has its uses, but if you want more control, then use GetKeyState instead.
Thanks, I'll look in an API reference for those.

Cheers.