Skip to main content
GameDev.net gamedev.net
🔒 Locked

Creating A console Window & Textbox

Started by mrKablamo Jan 25, 2006 at 11:59 AM 0 replies 550+ views
Original Post
mrKablamo
mrKablamo
Hey everyone, I was wondering if anyone knew any new articals or anything that could help with this, me and my team are working on a 3d Rail shooter, and well I'm needing to implement a console. Well we are using direcx for our display and input, and I have no idea on how to make a textbox display with directX, also I don't know how to go from a keypress to identify what letter was press without check every key. anyone have any idea or questions or comments. ps. sorry that this is so sloppy.
circlesoft
circlesoft
Quote:
Original post by mrKablamo
Hey everyone,
I was wondering if anyone knew any new articals or anything that could help with this, me and my team are working on a 3d Rail shooter, and well I'm needing to implement a console. Well we are using direcx for our display and input, and I have no idea on how to make a textbox display with directX, also I don't know how to go from a keypress to identify what letter was press without check every key. anyone have any idea or questions or comments.


I did one, and it was very simple. I don't have a fancy GUI system or anything - all I did was draw shaded quads, and then text over-top of it. Here is a screenshot of it:



It's alpha'ed kind of low, so you can see through it a lot in this picture.

For input, make sure you use the WM_CHAR message. This way, windows will handle all of the text stuff - shifted keys, caps lock, different locals, and key repeating.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.