Text input with direct input!

Started by
0 comments, last by Max_Payne 22 years, 5 months ago
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

Looking for a serious game project?
www.xgameproject.com
Advertisement
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!

This topic is closed to new replies.

Advertisement