Rémi Bernon : include: Add Windows.Gaming.Input.Custom.ICustomGameControllerFactory declaration.

Alexandre Julliard julliard at winehq.org
Mon Feb 28 15:50:33 CST 2022


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Feb 28 09:44:05 2022 +0100

include: Add Windows.Gaming.Input.Custom.ICustomGameControllerFactory declaration.

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

---

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

diff --git a/include/windows.gaming.input.custom.idl b/include/windows.gaming.input.custom.idl
index d24f07f02e1..2338e3be166 100644
--- a/include/windows.gaming.input.custom.idl
+++ b/include/windows.gaming.input.custom.idl
@@ -31,6 +31,7 @@ import "windows.storage.streams.idl";
 namespace Windows.Gaming.Input.Custom {
     typedef struct GameControllerVersionInfo GameControllerVersionInfo;
     interface IGameControllerProvider;
+    interface ICustomGameControllerFactory;
 
     [contract(Windows.Foundation.UniversalApiContract, 3.0)]
     struct GameControllerVersionInfo
@@ -53,4 +54,16 @@ namespace Windows.Gaming.Input.Custom {
         [propget] HRESULT HardwareVersionInfo([out, retval] Windows.Gaming.Input.Custom.GameControllerVersionInfo *value);
         [propget] HRESULT IsConnected([out, retval] boolean *value);
     }
+
+    [
+        contract(Windows.Foundation.UniversalApiContract, 3.0),
+        uuid(69a0ae5e-758e-4cbe-ace6-62155fe9126f)
+    ]
+    interface ICustomGameControllerFactory : IInspectable
+    {
+        HRESULT CreateGameController([in] Windows.Gaming.Input.Custom.IGameControllerProvider *provider,
+                                     [out, retval] IInspectable **value);
+        HRESULT OnGameControllerAdded([in] Windows.Gaming.Input.IGameController *value);
+        HRESULT OnGameControllerRemoved([in] Windows.Gaming.Input.IGameController *value);
+    }
 }




More information about the wine-cvs mailing list