Jump to content
  • Advertisement

Archived

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

Ructions

Input

This topic is 5235 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

i want to have in my game a highscore screen where the user can input there name. But i dont want to use a input box so the the only way i can see of doing it is to check for every button press. and when they press the button the value of that button is added to a string and the string is then displayed in the draw function everytime. But this would mean checking for each button press on the keyboard. but there must be a easier and shorter way. So hopefully someone might have an idea. Thanks in advance Ructions

Share this post


Link to post
Share on other sites
Advertisement
Only respond to input that is valid for the string, say, alphanumerics (0-9, a-z, A-Z). HINT: use isalnum() in . Then you just need to worry about backspace to delete the last character.

---
K-1 Productions: Come visit us here.

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!