Advertisement

keyboard input??

Started by February 22, 2002 06:23 AM
0 comments, last by jobrady 23 years ago
Using dx , I know that "if(buffer[DIK_RETURN] & 0x80)" will say if return has been pressed, but can someone tell me is there a way of getting which key has been pressed without calling that seperately for each key. I want to enter a name for ''savegame'' so I need to print what is typed- something like ''glPrint(key)'' but how do I find ''key''. Thanks, Joe
The only method I have seen for doing this is to build a lookup table which contains the ascii names of all the keys.



-------- E y e .Scream Software --------
----------------------------------------
                                  /-\
    http://www.eyescream.cjb.net | * |
                                  \-/
----------------------------------------

This topic is closed to new replies.

Advertisement