SDL_HapticConstant

A structure containing a template for a Constant effect.

This struct is exclusively for the SDL_HAPTIC_CONSTANT effect.

A constant effect applies a constant force in the specified direction to the joystick.

\since This struct is available since SDL 3.2.0.

\sa SDL_HAPTIC_CONSTANT \sa SDL_HapticEffect

Members

Variables

attack_length
Uint16 attack_length;

Duration of the attack.

attack_level
Uint16 attack_level;

Level at the start of the attack.

button
Uint16 button;

Button that triggers the effect.

delay
Uint16 delay;

Delay before starting the effect.

direction
SDL_HapticDirection direction;

Direction of the effect.

fade_length
Uint16 fade_length;

Duration of the fade.

fade_level
Uint16 fade_level;

Level at the end of the fade.

interval
Uint16 interval;

How soon it can be triggered again after button.

length
Uint32 length;

Duration of the effect.

level
Sint16 level;

Strength of the constant effect.

type
SDL_HapticEffectType type;

SDL_HAPTIC_CONSTANT

Meta