From: Rémi Bernon rbernon@codeweavers.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58574 --- MAINTAINERS | 1 + configure.ac | 1 + dlls/gameinput/Makefile.in | 7 +++++ dlls/gameinput/gameinput.c | 48 +++++++++++++++++++++++++++++++++++ dlls/gameinput/gameinput.spec | 3 +++ 5 files changed, 60 insertions(+) create mode 100644 dlls/gameinput/Makefile.in create mode 100644 dlls/gameinput/gameinput.c create mode 100644 dlls/gameinput/gameinput.spec
diff --git a/MAINTAINERS b/MAINTAINERS index f5a367650b0..d87f03b1335 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -203,6 +203,7 @@ F: dlls/jscript/ Joystick input M: Rémi Bernon rbernon@codeweavers.com F: dlls/dinput*/ +F: dlls/gameinput*/ F: dlls/joy.cpl/ F: dlls/windows.gaming.input/ F: dlls/winebus.sys/ diff --git a/configure.ac b/configure.ac index 33c5f0aee8d..7d680a949d7 100644 --- a/configure.ac +++ b/configure.ac @@ -2726,6 +2726,7 @@ WINE_CONFIG_MAKEFILE(dlls/fontsub) WINE_CONFIG_MAKEFILE(dlls/fusion) WINE_CONFIG_MAKEFILE(dlls/fusion/tests) WINE_CONFIG_MAKEFILE(dlls/fwpuclnt) +WINE_CONFIG_MAKEFILE(dlls/gameinput) WINE_CONFIG_MAKEFILE(dlls/gameux) WINE_CONFIG_MAKEFILE(dlls/gameux/tests) WINE_CONFIG_MAKEFILE(dlls/gamingtcui) diff --git a/dlls/gameinput/Makefile.in b/dlls/gameinput/Makefile.in new file mode 100644 index 00000000000..7b239def911 --- /dev/null +++ b/dlls/gameinput/Makefile.in @@ -0,0 +1,7 @@ +MODULE = gameinput.dll +EXTRADEFS = -D_GAMEINPUT_ + +EXTRADLLFLAGS = -Wb,--prefer-native + +SOURCES = \ + gameinput.c diff --git a/dlls/gameinput/gameinput.c b/dlls/gameinput/gameinput.c new file mode 100644 index 00000000000..0e76a4346fd --- /dev/null +++ b/dlls/gameinput/gameinput.c @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Rémi Bernon for CodeWeavers + * + * 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 + */ + +#include <stddef.h> +#include <stdarg.h> + +#define COBJMACROS +#include "windef.h" +#include "winbase.h" + +#define GAMEINPUT_API_VERSION 0 +#include "gameinput.h" +#undef GAMEINPUT_API_VERSION + +#define GAMEINPUT_API_VERSION 1 +#include "gameinput.h" +#undef GAMEINPUT_API_VERSION + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ginput); + +HRESULT WINAPI GameInputCreate( IGameInput0 **out ) +{ + FIXME( "out %p, stub!\n", out ); + return E_NOTIMPL; +} + +HRESULT WINAPI DllGetClassObject( REFCLSID clsid, REFIID riid, void **out ) +{ + FIXME( "clsid %s, riid %s, out %p stub!\n", debugstr_guid(clsid), debugstr_guid(riid), out ); + return CLASS_E_CLASSNOTAVAILABLE; +} diff --git a/dlls/gameinput/gameinput.spec b/dlls/gameinput/gameinput.spec new file mode 100644 index 00000000000..398594120b4 --- /dev/null +++ b/dlls/gameinput/gameinput.spec @@ -0,0 +1,3 @@ +@ stdcall GameInputCreate(ptr) +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr)