Module: wine
Branch: master
Commit: 25c52eb7645508d213d8cb2e2019217e9a0ba89b
URL: https://gitlab.winehq.org/wine/wine/-/commit/25c52eb7645508d213d8cb2e201921…
Author: Paul Gofman <pgofman(a)codeweavers.com>
Date: Tue Nov 2 18:20:25 2021 -0700
xinputuap.dll: Add new dll.
Based on a patch by Yusuf Khan <yusisamerican(a)gmail.com>.
Required for Halo Infinite.
---
configure | 2 ++
configure.ac | 1 +
dlls/xinputuap/Makefile.in | 8 ++++++++
dlls/xinputuap/version.rc | 27 +++++++++++++++++++++++++++
dlls/xinputuap/xinputuap.spec | 8 ++++++++
5 files changed, 46 insertions(+)
diff --git a/configure b/configure
index 66519182d59..74727004efd 100755
--- a/configure
+++ b/configure
@@ -1543,6 +1543,7 @@ enable_xinput1_2
enable_xinput1_3
enable_xinput1_4
enable_xinput9_1_0
+enable_xinputuap
enable_xmllite
enable_xolehlp
enable_xpsprint
@@ -22020,6 +22021,7 @@ wine_fn_config_makefile dlls/xinput1_3 enable_xinput1_3
wine_fn_config_makefile dlls/xinput1_3/tests enable_tests
wine_fn_config_makefile dlls/xinput1_4 enable_xinput1_4
wine_fn_config_makefile dlls/xinput9_1_0 enable_xinput9_1_0
+wine_fn_config_makefile dlls/xinputuap enable_xinputuap
wine_fn_config_makefile dlls/xmllite enable_xmllite
wine_fn_config_makefile dlls/xmllite/tests enable_tests
wine_fn_config_makefile dlls/xolehlp enable_xolehlp
diff --git a/configure.ac b/configure.ac
index 32eb88129eb..7313fde9a4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3304,6 +3304,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)