Sign in to follow this  
diyemei

how to input a value to a Variable in SDL

Recommended Posts

diyemei    122
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this