Jump to content
  • Advertisement

Archived

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

Max_Payne

Text input with direct input!

This topic is 6076 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

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
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!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!