Rémi Bernon : windows.gaming.input: Register Windows.Gaming.Input.Custom classes.

Alexandre Julliard julliard at winehq.org
Wed Mar 2 15:39:51 CST 2022


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Mar  2 14:03:03 2022 +0100

windows.gaming.input: Register Windows.Gaming.Input.Custom classes.

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

---

 dlls/windows.gaming.input/classes.idl   | 15 +++++++++++++++
 include/windows.gaming.input.custom.idl |  2 ++
 include/windows.gaming.input.idl        |  2 ++
 3 files changed, 19 insertions(+)

diff --git a/dlls/windows.gaming.input/classes.idl b/dlls/windows.gaming.input/classes.idl
index c9cb91e3182..fd52d8ebf66 100644
--- a/dlls/windows.gaming.input/classes.idl
+++ b/dlls/windows.gaming.input/classes.idl
@@ -20,4 +20,19 @@
 
 #pragma makedep register
 
+#ifdef __WIDL__
+#pragma winrt ns_prefix
+#endif
+
+import "inspectable.idl";
+import "asyncinfo.idl";
+import "eventtoken.idl";
+import "windowscontracts.idl";
+import "windows.foundation.idl";
+import "windows.devices.haptics.idl";
+import "windows.gaming.input.forcefeedback.idl";
+import "windows.system.idl";
+
+#define DO_NO_IMPORTS
 #include "windows.gaming.input.idl"
+#include "windows.gaming.input.custom.idl"
diff --git a/include/windows.gaming.input.custom.idl b/include/windows.gaming.input.custom.idl
index 0811b991091..8347f4663d3 100644
--- a/include/windows.gaming.input.custom.idl
+++ b/include/windows.gaming.input.custom.idl
@@ -20,6 +20,7 @@
 #pragma winrt ns_prefix
 #endif
 
+#ifndef DO_NO_IMPORTS
 import "inspectable.idl";
 import "asyncinfo.idl";
 import "eventtoken.idl";
@@ -27,6 +28,7 @@ import "windowscontracts.idl";
 import "windows.foundation.idl";
 import "windows.gaming.input.idl";
 import "windows.storage.streams.idl";
+#endif
 
 namespace Windows.Gaming.Input.Custom {
     typedef enum XusbDeviceSubtype XusbDeviceSubtype;
diff --git a/include/windows.gaming.input.idl b/include/windows.gaming.input.idl
index a7d5e71381d..90253b3a8f6 100644
--- a/include/windows.gaming.input.idl
+++ b/include/windows.gaming.input.idl
@@ -20,6 +20,7 @@
 #pragma winrt ns_prefix
 #endif
 
+#ifndef DO_NO_IMPORTS
 import "inspectable.idl";
 import "asyncinfo.idl";
 import "eventtoken.idl";
@@ -28,6 +29,7 @@ import "windows.foundation.idl";
 import "windows.devices.haptics.idl";
 import "windows.gaming.input.forcefeedback.idl";
 import "windows.system.idl";
+#endif
 
 namespace Windows.Gaming.Input {
     typedef enum GamepadButtons GamepadButtons;




More information about the wine-cvs mailing list