Been looking for the Windows.Gaming.Input
namespace but am having a hard time. What should I be referencing to get access to this? MSDN was literally no help in the matter. https://msdn.microsoft.com/en-us/library/windows/apps/windows.gaming.input.aspx
Worth noting that I have already included WindowsBase
and System.Windows
thinking they may be in there. No luck.
Also tried:
Neither would resolve the namespace.
Windows.Gaming.Input
is a UWP namespace, in order to use it you need to create a UWP app. From your question (you have included WindowsBase
and System.Windows
) it seems that you've created a WPF app, which is not the case.
You can create a UWP project with New -> Project -> Visual C# -> Windows -> Universal
for a C# project and Other Languages -> Visual C++ -> Windows -> Universal
for a C++ project.
After that it should work just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With