user32.dll throws an System.AccessViolationException when attempting to read input from a gamepad
I’m new to coding standalone applications, started a WPF project literally 4 days ago. Currently all it does is attempt to read the user’s inputs from keyboards, mouses and gamepads using this native method from user32.dll: