ConstantForceEffect Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A force feedback effect which applies a constant force along a vector.
public ref class ConstantForceEffect sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ConstantForceEffect final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ConstantForceEffect
function ConstantForceEffect()
Public NotInheritable Class ConstantForceEffect
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Constructors
ConstantForceEffect() |
Creates an instance of ConstantForceEffect. |
Properties
Gain |
Specifies the percentage by which to reduce the force of the effect. |
State |
The current state of the force feedback effect. |
Methods
SetParameters(Vector3, TimeSpan) |
Sets the parameters for the constant force feedback effect. |
SetParametersWithEnvelope(Vector3, Single, Single, Single, TimeSpan, TimeSpan, TimeSpan, TimeSpan, UInt32) |
Sets the parameters for the effect and sets an envelope for the effect. |
Start() |
Starts the force feedback effect. |
Stop() |
Stops the force feedback effect. |