Rémi Bernon : include: Add Windows.Gaming.Input.IGamepadStatics2 interface declaration.

Alexandre Julliard julliard at winehq.org
Tue Mar 8 16:10:49 CST 2022


Module: wine
Branch: master
Commit: a9fbfa1b9c5e929ae99957eeb353565be5f3af13
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a9fbfa1b9c5e929ae99957eeb353565be5f3af13

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Mar  8 10:55:25 2022 +0100

include: Add Windows.Gaming.Input.IGamepadStatics2 interface declaration.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/windows.gaming.input.idl | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/windows.gaming.input.idl b/include/windows.gaming.input.idl
index 6a5fc8af1ee..5bf94f78820 100644
--- a/include/windows.gaming.input.idl
+++ b/include/windows.gaming.input.idl
@@ -293,6 +293,18 @@ namespace Windows.Gaming.Input {
         [propget] HRESULT Gamepads([out, retval] Windows.Foundation.Collections.IVectorView<Gamepad *> **value);
     }
 
+    [
+        contract(Windows.Foundation.UniversalApiContract, 4.0),
+        exclusiveto(Windows.Gaming.Input.Gamepad),
+        uuid(42676dc5-0856-47c4-9213-b395504c3a3c)
+    ]
+    interface IGamepadStatics2 : IInspectable
+        requires Windows.Gaming.Input.IGamepadStatics
+    {
+        HRESULT FromGameController([in] Windows.Gaming.Input.IGameController *controller,
+                                   [out, retval] Windows.Gaming.Input.Gamepad **value);
+    }
+
     [
         contract(Windows.Foundation.UniversalApiContract, 1.0),
         exclusiveto(Windows.Gaming.Input.Headset),




More information about the wine-cvs mailing list