Archived

This topic is now archived and is closed to further replies.

jobrady

keyboard input??

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 | * |
                                  \-/
----------------------------------------

Share this post


Link to post
Share on other sites