Commit 36b45c6d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent b1998870
......@@ -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;
......@@ -51,6 +52,15 @@ namespace Windows.Gaming.Input.ForceFeedback {
};
[contract(Windows.Foundation.UniversalApiContract, 3.0)]
enum ForceFeedbackEffectState
{
Stopped = 0,
Running = 1,
Paused = 2,
Faulted = 3,
};
[contract(Windows.Foundation.UniversalApiContract, 3.0)]
enum ForceFeedbackLoadEffectResult
{
Succeeded = 0,
......@@ -60,6 +70,19 @@ namespace Windows.Gaming.Input.ForceFeedback {
[
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),
uuid(8d3d417c-a5ea-4516-8026-2b00f74ef6e5)
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment