0

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 Answer 1

0

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)

1
  • It does not support dinput, only xinput. I would like to make an app that records the events of the gamepad dinput and then transform it to xinput with the valid client. But I can't get a good way to capture gamepad activity
    – Oni
    Jul 22, 2020 at 2:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.