From bb648d2390310b73109f911c65ade906a5e25fe6 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 1 May 2018 20:17:34 +0200 Subject: [PATCH] As of Wine 3.1, XINPUT_STATE_EX no longer exists This changes XInputGetStateEx to use XINPUT_STATE instead of XINPUT_STATE_EX, which was removed from xinput.h in Wine 3.1. See: https://github.com/wine-mirror/wine/commit/de3591ca9803add117fbacb8abe9b335e2e44977#diff-2bd94ee2f73a16f93bda7805ff84f1e3 https://www.winehq.org/announce/3.1 --- xinput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xinput.cpp b/xinput.cpp index 49d15f6..639c1b6 100644 --- a/xinput.cpp +++ b/xinput.cpp @@ -317,8 +317,8 @@ XInputGetBatteryInformation(DWORD dwUserIndex, BYTE devType, } koku::jumper 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) {