Archived

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

Graphical console

This topic is 5505 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 make a console like the one on quake. I know how to render it, and how to parse, but my question is about input. The only idea i can think of is like this: if key ''a'' pressed add ''a'' to commandstring etc. for every key Is there an easier way? im not very familiar with the standard libs, but i know they have DOS console input. Is there a way to use that stuff work in regular apps? or is there some other way? or do i really have to check each key and do it that way. i guess it wouldn''t matter too much. but if there is an easier way, i dont want my code to be bloated.

Share this post


Link to post
Share on other sites
I''m not sure what you''re asking for. Using the ASCII code of the letters, you can get the number (0-26) of the letter entered. If you had an array of images for the letters, you could use that indice there.

Cédric

Share this post


Link to post
Share on other sites