Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

in-game command line

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 uberNooble   Members   

212
Like
0Likes
Like

Posted 28 June 2014 - 03:46 AM

Hello, 

 

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?

 

Thanks! 



#2 uberNooble   Members   

212
Like
4Likes
Like

Posted 28 June 2014 - 03:50 AM

I brought my search down to simpler terms and found out that SDL has a text input system. 

 

http://wiki.libsdl.org/Tutorials/TextInput

 

All good.


Edited by uberNooble, 28 June 2014 - 03:57 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.