Jump to content
  • Advertisement
Sign in to follow this  

in-game command line

This topic is 1548 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've been trying to find a good way to handle commands in-game, specifically using C++ and SDL 2. I do not want to use the traditional console window outside of the current work window, however, if possible, i'd like to be able to project the console window inside of the SDL window. Is there an easy way to do this or will I have to go about doing this manually?


As an example of what i'm looking for, source games have the tilde (~) key that can be pressed to allow a console screen to pop up, the same happens in The Sims, hitting shift-C. A simple text box to show what's being typed and output into the program when a button-key event has been picked up would be great. 


I'm well aware of sdl_ttf and have used it before, but it would be extremely complicated getting input. 


Any advice?



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.

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!