microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.57k stars 511 forks source link

windows.gaming.input.h: No such file or directory #67

Closed herdinstinct closed 7 years ago

herdinstinct commented 7 years ago

I just attempted to build after downloading but am unable to due to a missing windows.gaming.input.h. There is little information on where to find this file when googling. Any advice?

walbourn commented 7 years ago

I'm guessing you already solved your issue, but for future reference I'll answer here.

DirectX Tool Kit supports a wide combination of Microsoft platforms. As noted on the wiki, there are a number of different projects.

The Windows.Gaming.Input.h header is used by GamePad when building for Windows 10, typically for a Universal Windows Platform (UWP) app. The DirectXTK_Windows10.vcxproj is configured to use VS 2015 and the Windows 10 Anniversary Update SDK (14393) via the latest Windows Tools package for VS 2015, and has _WIN32_WINNT set to 0x0A00 to indicate building for Windows 10.

If you are targeting another platform, then be sure to set _WIN32_WINNT to the appropriate value: 0x0601 for Windows 7, 0x0603 for Windows 8.1, etc. This is already configured in the other vcxproj files.