C# capture pressed gamepad keys (Direct Input)

527 Views Asked by At

How to capture pressed gamepad keys (Direct Input) in C#?

I have searched but most of the sources seem outdated, will there be a simple API that allows me to capture these events?

I am making an app that captures all the keystrokes on a gamepad but I have no idea how to start.

1

There are 1 best solutions below

1
On

You can use XNA or MonoGame. They have simple API to detect pressed keys. For example https://learn.microsoft.com/en-us/previous-versions/windows/xna/bb197001(v=xnagamestudio.42)