Jump to content
  • Advertisement

Archived

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

jobrady

keyboard input??

This topic is 5991 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!