speps / XInputDotNet

C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D)
466 stars 96 forks source link

Correct the calling conversion in gamepad.h #26

Closed frozenology closed 4 years ago

frozenology commented 7 years ago

I tried to run the project and debugger got a error with calling conversion. so i added WINAPI directive to gamepad.h to fix.

typedef DWORD (WINAPI XInputGetStatePointer)(DWORD dwUserIndex, XINPUT_STATE pState); typedef DWORD (WINAPI XInputSetStatePointer)(DWORD dwUserIndex, XINPUT_VIBRATION pVibration);

speps commented 7 years ago

Thanks, a PR would help here. It's simple enough to modify by hand on GitHub yourself without having to fork the whole repo.

speps commented 4 years ago

Fixed by ef10076