Based on a patch by Yusuf Khan yusisamerican@gmail.com.
Required for Halo Infinite.
From: Paul Gofman pgofman@codeweavers.com
Based on a patch by Yusuf Khan yusisamerican@gmail.com.
Required for Halo Infinite. --- configure.ac | 1 + dlls/xinputuap/Makefile.in | 8 ++++++++ dlls/xinputuap/version.rc | 27 +++++++++++++++++++++++++++ dlls/xinputuap/xinputuap.spec | 8 ++++++++ 4 files changed, 44 insertions(+) create mode 100644 dlls/xinputuap/Makefile.in create mode 100644 dlls/xinputuap/version.rc create mode 100644 dlls/xinputuap/xinputuap.spec
diff --git a/configure.ac b/configure.ac index b7d443c1182..b85d1793502 100644 --- a/configure.ac +++ b/configure.ac @@ -3295,6 +3295,7 @@ WINE_CONFIG_MAKEFILE(dlls/xinput1_3) WINE_CONFIG_MAKEFILE(dlls/xinput1_3/tests) WINE_CONFIG_MAKEFILE(dlls/xinput1_4) WINE_CONFIG_MAKEFILE(dlls/xinput9_1_0) +WINE_CONFIG_MAKEFILE(dlls/xinputuap) WINE_CONFIG_MAKEFILE(dlls/xmllite) WINE_CONFIG_MAKEFILE(dlls/xmllite/tests) WINE_CONFIG_MAKEFILE(dlls/xolehlp) diff --git a/dlls/xinputuap/Makefile.in b/dlls/xinputuap/Makefile.in new file mode 100644 index 00000000000..5d311fe7c31 --- /dev/null +++ b/dlls/xinputuap/Makefile.in @@ -0,0 +1,8 @@ +MODULE = xinputuap.dll +IMPORTS = hid setupapi advapi32 user32 +PARENTSRC = ../xinput1_3 + +C_SRCS = \ + main.c + +RC_SRCS = version.rc diff --git a/dlls/xinputuap/version.rc b/dlls/xinputuap/version.rc new file mode 100644 index 00000000000..557189b1596 --- /dev/null +++ b/dlls/xinputuap/version.rc @@ -0,0 +1,27 @@ +/* + * The Wine project - Xinput Joystick Library + * Copyright 2021 Yusuf Khan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine Common Controller API" +#define WINE_FILENAME_STR "xinputuap.dll" +#define WINE_FILEVERSION 10,0,19041,746 +#define WINE_FILEVERSION_STR "10.0.19041.746" +#define WINE_PRODUCTVERSION 10,0,19041,746 +#define WINE_PRODUCTVERSION_STR "10.0" + +#include "wine/wine_common_ver.rc" diff --git a/dlls/xinputuap/xinputuap.spec b/dlls/xinputuap/xinputuap.spec new file mode 100644 index 00000000000..4a5ee5c51d8 --- /dev/null +++ b/dlls/xinputuap/xinputuap.spec @@ -0,0 +1,8 @@ +1 stdcall -private DllMain(long long ptr) +2 stdcall XInputEnable(long) +3 stub XInputGetAudioDeviceIds(long ptr ptr ptr ptr) +4 stdcall XInputGetBatteryInformation(long long ptr) +5 stdcall XInputGetCapabilities(long long ptr) +6 stdcall XInputGetKeystroke(long long ptr) +7 stdcall XInputGetState(long ptr) +8 stdcall XInputSetState(long ptr)
This merge request was approved by Rémi Bernon.
Some are not marked as stub but don't provide any implementation. Is that wanted?
On Tue Nov 22 14:15:26 2022 +0000, Bernhard Kölbl wrote:
Some are not marked as stub but don't provide any implementation. Is that wanted?
Ah I guess they are imported from parent, my bad.