TSdlHapticConstant
A record containing a template for a Constant effect.
This record is exclusively for the TSdlHapticKind.Constant effect.
A constant effect applies a constant force in the specified direction to the joystick.
Definition
Unit: Neslib.Sdl3.Haptic
See Also
Properties
Name | Description |
---|---|
AttackLength | Duration of the attack. |
AttackLevel | Level at the start of the attack. |
Button | Button that triggers the effect. |
Delay | Delay before starting the effect. |
Direction | Direction of the effect. |
FadeLength | Duration of the fade. |
FadeLevel | Level at the end of the fade. |
Interval | How soon it can be triggered again after button. |
Kind | TSdlHapticKind.Constant |
Length | Duration of the effect in milliseconds. |
Level | Strength of the constant effect. |
Property Descriptions
AttackLength
Duration of the attack.
property AttackLength: Word read FHandle.attack_length write FHandle.attack_length
Type: Word
AttackLevel
Level at the start of the attack.
property AttackLevel: Word read FHandle.attack_level write FHandle.attack_level
Type: Word
Button
Button that triggers the effect.
property Button: Word read FHandle.button write FHandle.button
Type: Word
Delay
Delay before starting the effect.
property Delay: Word read FHandle.delay write FHandle.delay
Type: Word
Direction
Direction of the effect.
property Direction: PSdlHapticDirection read GetDirection
Type: PSdlHapticDirection
FadeLength
Duration of the fade.
property FadeLength: Word read FHandle.fade_length write FHandle.fade_length
Type: Word
FadeLevel
Level at the end of the fade.
property FadeLevel: Word read FHandle.fade_level write FHandle.fade_level
Type: Word
Interval
How soon it can be triggered again after button.
property Interval: Word read FHandle.interval write FHandle.interval
Type: Word
Kind
TSdlHapticKind.Constant
property Kind: TSdlHapticKind read GetKind write SetKind
Type: TSdlHapticKind
Length
Duration of the effect in milliseconds.
property Length: Cardinal read FHandle.length write FHandle.length
Type: Cardinal
Level
Strength of the constant effect.
property Level: Smallint read FHandle.level write FHandle.level
Type: Smallint