Detecting key press? (Help with something please)
Hi, me and my friend are working on a tetris game, and it is coming along quite well, but we are having trouble with one thing, we need to fix the controls, the controls work, but the program only detects a key press every frame, how can we make it detect a keypress everytime a key is pressed? thanks
Edited by - felisandria on February 2, 2001 5:45:59 PM
Well, I''m at work and don''t have access to my code or any referance, but calling GetAsyncKeyState() (or something very similer) will give you the key state of any key you want, whenever you call it.
Jason Mickela
ICQ : 873518
E-Mail: jmickela@pacbell.net
------------------------------
"Evil attacks from all sides
but the greatest evil attacks
from within." Me
------------------------------
Jason Mickela
ICQ : 873518
E-Mail: jmickela@pacbell.net
------------------------------
"Evil attacks from all sides
but the greatest evil attacks
from within." Me
------------------------------
"The paths of glory lead but to the grave." - Thomas GrayMy Stupid BlogMy Online Photo Gallery
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement