User Input - DirectX
Alright, I've googled to my hearts little content, but I haven't found a good solution to my problem. I'm working on a high score table for a project of mine, and everything is going pretty good (all things considered). I'm working with DirectX, and I have everything laid out perfectly how I want it for the scoreboard. The only problem I can't seem to figure out is how to allow the user to input text.
I might assume that something cheap like cin >> may work, but I have my doubts. Even if such a silly thing did work, the user wouldn't be able to see what they're entering. If the user can't input text, the scores will be meaningless since they won't have a name attatched to them. If anyone can point me towards a good article on such an idea, or point me in the right direction that would be awesome. I've just hit a brick wall with this until then though. I'd really rather not have to code like some giant switch statement to catch every keystroke, and turn that into text if I don't have to lol. Thanks for any help you can give me!
(SDK root)\Samples\C++\Direct3D\CustomUI
Class -- CDXUTEditBox
The SDK has this example of an edit control. Otherwise you could roll your own by creating a caret and placing each key event into a buffer.
I am not sure if this is what you meant.
Class -- CDXUTEditBox
The SDK has this example of an edit control. Otherwise you could roll your own by creating a caret and placing each key event into a buffer.
I am not sure if this is what you meant.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement