goldenaura3 Level: Trainee
 Registered: 28-05-2005 Posts: 3
|
Options For Grabbing Input
Howdy, everyone. 
I've got a quick question about getting keyboard input. What I'm trying to do is wait for a user to press a key, then have a method return which key was pressed. I understand it's possible to do so by creating an switch statment with each key, but are there easier options?
Here's what I've tried:
crtdll/_getch
May be shell based. Always returns -1 in the program.
user32/GetAsyncKeyState
user32/GetKeyState
It works, but I'm curious to see if there is a method to automaticly return which key was pressed.
Thanks muchly for any info.
|