Archived

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

Max_Payne

Text input with direct input!

Recommended Posts

Me and my friends are programming a 3D game (FPS) with OpenGL and we are currently using direct input for the controls(might switch it all to SDL). In the game, we need to be able to input text in a console and in the chatbox. I was wondering, what is the best way of doing this? Is there any pseudo code? Is it possible to do it with the windows API without even using direct input? I would also like to mention, i'd like to store the text input in a char array. Thanks for your help Edited by - Max_Payne on November 5, 2001 1:00:40 PM

Share this post


Link to post
Share on other sites
quote:
Original post by Max_Payne
Is it possible to do it with the windows API without even using direct input?

For text input, it is recommended. You could use a Windows GDI control (e.g. a RichEdit control) which accepts text input automatically. You''ll need to make a few function calls to transfer that text to a variable (I think GetText() should do it).



I wanna work for Microsoft!

Share this post


Link to post
Share on other sites