Rémi Bernon : include: Add Windows.Devices.Haptics.SimpleHapticsController definition.
Alexandre Julliard
julliard at winehq.org
Tue Feb 22 16:06:49 CST 2022
Module: wine
Branch: master
Commit: 66bd6e5276d7ac54bbe294b624ef2f470e1f8b19
URL: https://source.winehq.org/git/wine.git/?a=commit;h=66bd6e5276d7ac54bbe294b624ef2f470e1f8b19
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Mon Feb 21 19:52:47 2022 +0100
include: Add Windows.Devices.Haptics.SimpleHapticsController definition.
In windows.devices.haptics.idl.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/Makefile.in | 1 +
include/windows.devices.haptics.idl | 91 +++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 04537ea72ef..8a8fddddada 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -776,6 +776,7 @@ SOURCES = \
windns.h \
windot11.h \
windows.devices.enumeration.idl \
+ windows.devices.haptics.idl \
windows.foundation.collections.idl \
windows.foundation.idl \
windows.gaming.input.forcefeedback.idl \
diff --git a/include/windows.devices.haptics.idl b/include/windows.devices.haptics.idl
new file mode 100644
index 00000000000..c056ab4941c
--- /dev/null
+++ b/include/windows.devices.haptics.idl
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2022 Rémi Bernon for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifdef __WIDL__
+#pragma winrt ns_prefix
+#endif
+
+import "inspectable.idl";
+import "windows.foundation.idl";
+
+namespace Windows.Devices.Haptics {
+ interface ISimpleHapticsControllerFeedback;
+ interface ISimpleHapticsController;
+ runtimeclass SimpleHapticsControllerFeedback;
+ runtimeclass SimpleHapticsController;
+
+ declare {
+ interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsController *>;
+ interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *>;
+ }
+
+ [
+ contract(Windows.Foundation.UniversalApiContract, 4.0),
+ exclusiveto(Windows.Devices.Haptics.SimpleHapticsControllerFeedback),
+ uuid(3d577ef8-4cee-11e6-b535-001bdc06ab3b)
+ ]
+ interface ISimpleHapticsControllerFeedback : IInspectable
+ {
+ [propget] HRESULT Waveform([out, retval] UINT16 *value);
+ [propget] HRESULT Duration([out, retval] Windows.Foundation.TimeSpan *value);
+ }
+
+ [
+ contract(Windows.Foundation.UniversalApiContract, 4.0),
+ exclusiveto(Windows.Devices.Haptics.SimpleHapticsController),
+ uuid(3d577ef9-4cee-11e6-b535-001bdc06ab3b)
+ ]
+ interface ISimpleHapticsController : IInspectable
+ {
+ [propget] HRESULT Id([out, retval] HSTRING *value);
+ [propget] HRESULT SupportedFeedback([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *> **value);
+ [propget] HRESULT IsIntensitySupported([out, retval] boolean *value);
+ [propget] HRESULT IsPlayCountSupported([out, retval] boolean *value);
+ [propget] HRESULT IsPlayDurationSupported([out, retval] boolean *value);
+ [propget] HRESULT IsReplayPauseIntervalSupported([out, retval] boolean *value);
+ HRESULT StopFeedback();
+ [overload("SendHapticFeedback")]
+ HRESULT SendHapticFeedback([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback);
+ [overload("SendHapticFeedback")]
+ HRESULT SendHapticFeedbackWithIntensity([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
+ [in] DOUBLE intensity);
+ HRESULT SendHapticFeedbackForDuration([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
+ [in] DOUBLE intensity, [in] Windows.Foundation.TimeSpan duration);
+ HRESULT SendHapticFeedbackForPlayCount([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
+ [in] DOUBLE intensity, [in] INT32 count,
+ [in] Windows.Foundation.TimeSpan interval);
+ }
+
+ [
+ contract(Windows.Foundation.UniversalApiContract, 4.0),
+ marshaling_behavior(agile)
+ ]
+ runtimeclass SimpleHapticsControllerFeedback
+ {
+ [default] interface Windows.Devices.Haptics.ISimpleHapticsControllerFeedback;
+ }
+
+ [
+ contract(Windows.Foundation.UniversalApiContract, 4.0),
+ marshaling_behavior(agile)
+ ]
+ runtimeclass SimpleHapticsController
+ {
+ [default] interface Windows.Devices.Haptics.ISimpleHapticsController;
+ }
+}
More information about the wine-cvs
mailing list