po: Update Lithuanian translation.
[wine.git] / include / windows.devices.haptics.idl
blobc056ab4941cf8b2ed25fc43be54201aa0403710f
1 /*
2 * Copyright 2022 RĂ©mi Bernon for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
23 import "inspectable.idl";
24 import "windows.foundation.idl";
26 namespace Windows.Devices.Haptics {
27 interface ISimpleHapticsControllerFeedback;
28 interface ISimpleHapticsController;
29 runtimeclass SimpleHapticsControllerFeedback;
30 runtimeclass SimpleHapticsController;
32 declare {
33 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsController *>;
34 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *>;
38 contract(Windows.Foundation.UniversalApiContract, 4.0),
39 exclusiveto(Windows.Devices.Haptics.SimpleHapticsControllerFeedback),
40 uuid(3d577ef8-4cee-11e6-b535-001bdc06ab3b)
42 interface ISimpleHapticsControllerFeedback : IInspectable
44 [propget] HRESULT Waveform([out, retval] UINT16 *value);
45 [propget] HRESULT Duration([out, retval] Windows.Foundation.TimeSpan *value);
49 contract(Windows.Foundation.UniversalApiContract, 4.0),
50 exclusiveto(Windows.Devices.Haptics.SimpleHapticsController),
51 uuid(3d577ef9-4cee-11e6-b535-001bdc06ab3b)
53 interface ISimpleHapticsController : IInspectable
55 [propget] HRESULT Id([out, retval] HSTRING *value);
56 [propget] HRESULT SupportedFeedback([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Haptics.SimpleHapticsControllerFeedback *> **value);
57 [propget] HRESULT IsIntensitySupported([out, retval] boolean *value);
58 [propget] HRESULT IsPlayCountSupported([out, retval] boolean *value);
59 [propget] HRESULT IsPlayDurationSupported([out, retval] boolean *value);
60 [propget] HRESULT IsReplayPauseIntervalSupported([out, retval] boolean *value);
61 HRESULT StopFeedback();
62 [overload("SendHapticFeedback")]
63 HRESULT SendHapticFeedback([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback);
64 [overload("SendHapticFeedback")]
65 HRESULT SendHapticFeedbackWithIntensity([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
66 [in] DOUBLE intensity);
67 HRESULT SendHapticFeedbackForDuration([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
68 [in] DOUBLE intensity, [in] Windows.Foundation.TimeSpan duration);
69 HRESULT SendHapticFeedbackForPlayCount([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback *feedback,
70 [in] DOUBLE intensity, [in] INT32 count,
71 [in] Windows.Foundation.TimeSpan interval);
75 contract(Windows.Foundation.UniversalApiContract, 4.0),
76 marshaling_behavior(agile)
78 runtimeclass SimpleHapticsControllerFeedback
80 [default] interface Windows.Devices.Haptics.ISimpleHapticsControllerFeedback;
84 contract(Windows.Foundation.UniversalApiContract, 4.0),
85 marshaling_behavior(agile)
87 runtimeclass SimpleHapticsController
89 [default] interface Windows.Devices.Haptics.ISimpleHapticsController;