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

Commit

Permalink
As of Wine 3.1, XINPUT_STATE_EX no longer exists
Browse files Browse the repository at this point in the history
This changes XInputGetStateEx to use XINPUT_STATE instead of
XINPUT_STATE_EX, which was removed from xinput.h in Wine 3.1.

See:
wine-mirror/wine@de3591c#diff-2bd94ee2f73a16f93bda7805ff84f1e3
https://www.winehq.org/announce/3.1
  • Loading branch information
matte3560 committed May 1, 2018
1 parent 73077c8 commit bb648d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xinput.cpp
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 bb648d2

Please sign in to comment.