Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #35 from matte3560/fix-wine-3.1
Browse files Browse the repository at this point in the history
As of Wine 3.1, XINPUT_STATE_EX no longer exists
  • Loading branch information
KoKuToru authored May 6, 2018
2 parents 73077c8 + bb648d2 commit d976325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ XInputGetBatteryInformation(DWORD dwUserIndex, BYTE devType,
}

koku::jumper<decltype(XInputGetStateEx)> XInputGetStateExJumper;
DWORD WINAPI XInputGetStateEx(DWORD dwUserIndex, XINPUT_STATE_EX *pState) {
return koku::XInputGetState(dwUserIndex, (XINPUT_STATE *)pState);
DWORD WINAPI XInputGetStateEx(DWORD dwUserIndex, XINPUT_STATE *pState) {
return koku::XInputGetState(dwUserIndex, pState);
}

void XInputInit(void *handle) {
Expand Down

0 comments on commit d976325

Please sign in to comment.