microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.49k stars 396 forks source link

Added explicit GAMEINPUT vs. WGI vs. XINPUT preprocessor overrides #139

Closed walbourn closed 1 year ago

walbourn commented 1 year ago

By default the input implementation choice is made by the platform defines. This allows the USING_GAMEINPUT, USING_WINDOWS_GAMING_INPUT, and USING_XINPUT defines to override this rather than just indicating the choice.

The defines can also be used to force the header when used in client code to match whatever choice was used to build the library in cases where the defaults don't match.