Jump to content
  • Advertisement
Sign in to follow this  
jdub

C#: getting input with windows messages

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

when I get input using win32 messages, do I have to memorize the message codes, or is their a way I can use Microsoft's message defines(ex: WM_ACTIVATE)?

Share this post


Link to post
Share on other sites
Advertisement
Since there's no way to #include .h files in C# (which is an incredibly good thing from a compiler point of view), you'll have to do something like the article and redefine them yourself.

Which is nice, because then you can put them in an enum and don't have to all-caps them or put WM_ in front of them, either.

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!