Skip to content

TSdlHapticKind

Types of effects.

Definition

Unit: Neslib.Sdl3.Haptic

type TSdlHapticKind = (Constant, Sine, Square, Triangle, SawToothUp, SawToothDown, Ramp, Spring, Damper, Inertia, Friction, LeftRight, Custom)

Enumeration Values

Constant = SDL_HAPTIC_CONSTANT

Constant haptic effect.


Sine = SDL_HAPTIC_SINE

Periodic haptic effect that simulates sine waves.


Square = SDL_HAPTIC_SQUARE

Periodic haptic effect that simulates square waves.


Triangle = SDL_HAPTIC_TRIANGLE

Periodic haptic effect that simulates triangular waves.


SawToothUp = SDL_HAPTIC_SAWTOOTHUP

Periodic haptic effect that simulates saw tooth up waves.


SawToothDown = SDL_HAPTIC_SAWTOOTHDOWN

Periodic haptic effect that simulates saw tooth down waves.


Ramp = SDL_HAPTIC_RAMP

Ramp haptic effect.


Spring = SDL_HAPTIC_SPRING

Condition haptic effect that simulates a spring. Effect is based on the axes position.


Damper = SDL_HAPTIC_DAMPER

Condition haptic effect that simulates dampening. Effect is based on the axes velocity.


Inertia = SDL_HAPTIC_INERTIA

Condition haptic effect that simulates inertia. Effect is based on the axes acceleration.


Friction = SDL_HAPTIC_FRICTION

Condition haptic effect that simulates friction. Effect is based on the axes movement.


LeftRight = SDL_HAPTIC_LEFTRIGHT

Haptic effect for direct control over high/low frequency motors.


Custom = SDL_HAPTIC_CUSTOM

User defined custom haptic effect.