Archived

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

keyboard input??

This topic is 5778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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