Jump to content
  • Advertisement
Sign in to follow this  
HexDump

SDL and TranslateMessage

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

Hi, I have a SDL application that shows some dialogs. I have some textedit controls. When I try to input text to this edi box no text is inserted. Checking the SDL sources I have noticed that TranslateMessage is not called so this should be the problem. I have added it to the message loops, compiled but I still have the same problem. I´m calling SDL_PollEvents to get the events, and it seems not to call any DIB_XXXXXX message function (the ones I edited), so my source modifications are useless. Does anybody know how can I fix this?. Thanksin advance, HexDump.

Share this post


Link to post
Share on other sites
Advertisement
you must include <SDL_syswm.h> and call SDL_EventState(SDL_SYSWMEVENT,SDL_ENABLE) before the window messages will be proccessed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!