TSdlHapticRamp
A record containing a template for a Ramp effect.
This record is exclusively for the TSdlHapticKind.Ramp effect.
The ramp effect starts at start strength and ends at end strength. It augments in linear fashion. If you use attack and fade with a ramp the effects get added to the ramp effect making the effect become quadratic instead of linear.
Definition
Unit: Neslib.Sdl3.Haptic
See Also
Properties
Name | Description |
---|---|
&End | Ending strength level. |
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.Ramp |
Length | Duration of the effect in milliseconds. |
Start | Beginning strength level. |
Property Descriptions
&End
Ending strength level.
property &End: Smallint read FHandle.&end write FHandle.&end
Type: Smallint
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.Ramp
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
Start
Beginning strength level.
property Start: Smallint read FHandle.start write FHandle.start
Type: Smallint