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
20 #pragma winrt ns_prefix
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
;
33 interface Windows.Foundation.Collections.IIterator
<Windows.Devices.Haptics.SimpleHapticsController
*>;
34 interface Windows.Foundation.Collections.IIterable
<Windows.Devices.Haptics.SimpleHapticsController
*>;
35 interface Windows.Foundation.Collections.IVectorView
<Windows.Devices.Haptics.SimpleHapticsController
*>;
36 interface Windows.Foundation.Collections.IVector
<Windows.Devices.Haptics.SimpleHapticsController
*>;
37 interface Windows.Foundation.Collections.IVectorView
<Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*>;
41 contract
(Windows.Foundation.UniversalApiContract
, 4.0),
42 exclusiveto
(Windows.Devices.Haptics.SimpleHapticsControllerFeedback
),
43 uuid(3d577ef8
-4cee
-11e6
-b535
-001bdc06ab3b
)
45 interface ISimpleHapticsControllerFeedback
: IInspectable
47 [propget] HRESULT Waveform
([out, retval] UINT16
*value
);
48 [propget] HRESULT Duration
([out, retval] Windows.Foundation.TimeSpan
*value
);
52 contract
(Windows.Foundation.UniversalApiContract
, 4.0),
53 exclusiveto
(Windows.Devices.Haptics.SimpleHapticsController
),
54 uuid(3d577ef9
-4cee
-11e6
-b535
-001bdc06ab3b
)
56 interface ISimpleHapticsController
: IInspectable
58 [propget] HRESULT Id([out, retval] HSTRING
*value
);
59 [propget] HRESULT SupportedFeedback
([out, retval] Windows.Foundation.Collections.IVectorView
<Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*> **value
);
60 [propget] HRESULT IsIntensitySupported
([out, retval] boolean *value
);
61 [propget] HRESULT IsPlayCountSupported
([out, retval] boolean *value
);
62 [propget] HRESULT IsPlayDurationSupported
([out, retval] boolean *value
);
63 [propget] HRESULT IsReplayPauseIntervalSupported
([out, retval] boolean *value
);
64 HRESULT StopFeedback
();
65 [overload
("SendHapticFeedback")]
66 HRESULT SendHapticFeedback
([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*feedback
);
67 [overload
("SendHapticFeedback")]
68 HRESULT SendHapticFeedbackWithIntensity
([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*feedback
,
69 [in] DOUBLE intensity
);
70 HRESULT SendHapticFeedbackForDuration
([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*feedback
,
71 [in] DOUBLE intensity
, [in] Windows.Foundation.TimeSpan duration
);
72 HRESULT SendHapticFeedbackForPlayCount
([in] Windows.Devices.Haptics.SimpleHapticsControllerFeedback
*feedback
,
73 [in] DOUBLE intensity
, [in] INT32 count
,
74 [in] Windows.Foundation.TimeSpan interval
);
78 contract
(Windows.Foundation.UniversalApiContract
, 4.0),
79 marshaling_behavior
(agile
)
81 runtimeclass SimpleHapticsControllerFeedback
83 [default] interface Windows.Devices.Haptics.ISimpleHapticsControllerFeedback
;
87 contract
(Windows.Foundation.UniversalApiContract
, 4.0),
88 marshaling_behavior
(agile
)
90 runtimeclass SimpleHapticsController
92 [default] interface Windows.Devices.Haptics.ISimpleHapticsController
;