Commit f68270e8 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent 23f282b3
...@@ -31,6 +31,7 @@ import "windows.storage.streams.idl"; ...@@ -31,6 +31,7 @@ import "windows.storage.streams.idl";
namespace Windows.Gaming.Input.Custom { namespace Windows.Gaming.Input.Custom {
typedef struct GameControllerVersionInfo GameControllerVersionInfo; typedef struct GameControllerVersionInfo GameControllerVersionInfo;
interface IGameControllerProvider; interface IGameControllerProvider;
interface ICustomGameControllerFactory;
[contract(Windows.Foundation.UniversalApiContract, 3.0)] [contract(Windows.Foundation.UniversalApiContract, 3.0)]
struct GameControllerVersionInfo struct GameControllerVersionInfo
...@@ -53,4 +54,16 @@ namespace Windows.Gaming.Input.Custom { ...@@ -53,4 +54,16 @@ namespace Windows.Gaming.Input.Custom {
[propget] HRESULT HardwareVersionInfo([out, retval] Windows.Gaming.Input.Custom.GameControllerVersionInfo *value); [propget] HRESULT HardwareVersionInfo([out, retval] Windows.Gaming.Input.Custom.GameControllerVersionInfo *value);
[propget] HRESULT IsConnected([out, retval] boolean *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);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment