Jump to content
  • Advertisement
Sign in to follow this  

how to input a value to a Variable in SDL

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

in my programe, int a; //Variable and while programe running ,there is a box ,i can press the keyboard,and show them in box at once, now,i wanna input a value with keybosrd to the a(Variable),how to do it? just as: int a = 1; when i press '2',then a = 2,and show '2' in the box at once by the way :anybody explain SDL_WM_GrabInput() exactly? with a example the best! thank you!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!