2021-02-26 20:46:07 -08:00
|
|
|
From e6de4311bc082beedabf8aec5d43ab03c009e0b5 Mon Sep 17 00:00:00 2001
|
2020-10-14 00:01:08 -07:00
|
|
|
From: =?UTF-8?q?R=C3=A9mi=20Bernon?= <rbernon@codeweavers.com>
|
|
|
|
Date: Tue, 13 Oct 2020 17:59:51 +0200
|
2021-02-26 20:46:07 -08:00
|
|
|
Subject: [PATCH] windows.gaming.input: Fake empty IGamepadStatics::Gamepads
|
|
|
|
vector.
|
2020-10-14 00:01:08 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
.../windows.gaming.input_main.c | 11 +++++++----
|
|
|
|
1 file changed, 7 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/dlls/windows.gaming.input.dll/windows.gaming.input_main.c b/dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
2021-02-26 20:46:07 -08:00
|
|
|
index 444eb687175..0df7927a57b 100644
|
2020-10-14 00:01:08 -07:00
|
|
|
--- a/dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
|
|
|
+++ b/dlls/windows.gaming.input.dll/windows.gaming.input_main.c
|
2021-02-26 20:46:07 -08:00
|
|
|
@@ -112,28 +112,31 @@ static HRESULT STDMETHODCALLTYPE vector_view_gamepad_GetAt(
|
2020-10-14 00:01:08 -07:00
|
|
|
IVectorView_Gamepad *iface, ULONG index, IGamepad **value)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, index %#x, value %p stub!\n", iface, index, value);
|
|
|
|
- return E_NOTIMPL;
|
|
|
|
+ return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT STDMETHODCALLTYPE vector_view_gamepad_get_Size(
|
|
|
|
IVectorView_Gamepad *iface, ULONG *value)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, value %p stub!\n", iface, value);
|
|
|
|
- return E_NOTIMPL;
|
|
|
|
+ *value = 0;
|
|
|
|
+ return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT STDMETHODCALLTYPE vector_view_gamepad_IndexOf(
|
|
|
|
IVectorView_Gamepad *iface, IGamepad *element, ULONG *index, BOOLEAN *value)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, element %p, index %p, value %p stub!\n", iface, element, index, value);
|
|
|
|
- return E_NOTIMPL;
|
|
|
|
+ *value = FALSE;
|
|
|
|
+ return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT STDMETHODCALLTYPE vector_view_gamepad_GetMany(
|
|
|
|
IVectorView_Gamepad *iface, ULONG start_index, IGamepad **items, UINT *value)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, start_index %#x, items %p, value %p stub!\n", iface, start_index, items, value);
|
|
|
|
- return E_NOTIMPL;
|
|
|
|
+ *value = 0;
|
|
|
|
+ return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const struct IVectorView_GamepadVtbl vector_view_gamepad_vtbl =
|
|
|
|
--
|
2021-02-26 20:46:07 -08:00
|
|
|
2.20.1
|
2020-10-14 00:01:08 -07:00
|
|
|
|