Rémi Bernon : include: Add Windows.Gaming.Input.ForceFeedback.IForceFeedbackEffect interface declaration.

Alexandre Julliard julliard at winehq.org
Wed Apr 20 16:49:49 CDT 2022


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Apr 20 19:04:02 2022 +0200

include: Add Windows.Gaming.Input.ForceFeedback.IForceFeedbackEffect interface declaration.

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

---

 include/windows.gaming.input.forcefeedback.idl | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/include/windows.gaming.input.forcefeedback.idl b/include/windows.gaming.input.forcefeedback.idl
index 39705918b6e..432b60a5592 100644
--- a/include/windows.gaming.input.forcefeedback.idl
+++ b/include/windows.gaming.input.forcefeedback.idl
@@ -28,6 +28,7 @@ import "windows.foundation.idl";
 
 namespace Windows.Gaming.Input.ForceFeedback {
     typedef enum ForceFeedbackEffectAxes ForceFeedbackEffectAxes;
+    typedef enum ForceFeedbackEffectState ForceFeedbackEffectState;
     typedef enum ForceFeedbackLoadEffectResult ForceFeedbackLoadEffectResult;
     interface IForceFeedbackEffect;
     runtimeclass ForceFeedbackMotor;
@@ -50,6 +51,15 @@ namespace Windows.Gaming.Input.ForceFeedback {
         Z    = 0x4
     };
 
+    [contract(Windows.Foundation.UniversalApiContract, 3.0)]
+    enum ForceFeedbackEffectState
+    {
+        Stopped = 0,
+        Running = 1,
+        Paused  = 2,
+        Faulted = 3,
+    };
+
     [contract(Windows.Foundation.UniversalApiContract, 3.0)]
     enum ForceFeedbackLoadEffectResult
     {
@@ -58,6 +68,19 @@ namespace Windows.Gaming.Input.ForceFeedback {
         EffectNotSupported = 2
     };
 
+    [
+        contract(Windows.Foundation.UniversalApiContract, 3.0),
+        uuid(a17fba0c-2ae4-48c2-8063-eabd0777cb89)
+    ]
+    interface IForceFeedbackEffect : IInspectable
+    {
+        [propget] HRESULT Gain([out, retval] DOUBLE *value);
+        [propput] HRESULT Gain([in] DOUBLE value);
+        [propget] HRESULT State([out, retval] Windows.Gaming.Input.ForceFeedback.ForceFeedbackEffectState *value);
+        HRESULT Start();
+        HRESULT Stop();
+    }
+
     [
         contract(Windows.Foundation.UniversalApiContract, 3.0),
         exclusiveto(Windows.Gaming.Input.ForceFeedback.ForceFeedbackMotor),




More information about the wine-cvs mailing list