Jump to content
  • Advertisement
Sign in to follow this  

mingw, RawInput and #define _WIN32_WINNT 0x0501

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

(a bit strange situation, imo)


I wanted to code a bit of raw input api


it should not need (as i read somewhere) any external linking just

windows.h    But when Im trying to compile it id does compile error,

types are not defined,      Found in the net some advice that it

is becouse that _WIN32_WINNT 0x0501 is not defined - so I just



#define  _WIN32_WINNT 0x0501

#define WIN32_EXTRA_LEAN
#include <windows.h>

// here raw input api using code



Is it safe to do that? I do not understand this situation..

After doing that all seamlesly compiles and works



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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!