---
name: "SDL_HAPTIC_SPRING"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HAPTIC_SPRING"
---

# SDL\_HAPTIC\_SPRING(3)

Spring effect supported - uses axes position.

## NAME

SDL\_HAPTIC\_SPRING - Spring effect supported - uses axes position.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_HAPTIC\_SPRING       (1u\<\<7)**

## DESCRIPTION

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

## AVAILABILITY

This macro is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_HapticCondition**(3type)](/SDL_HapticCondition/3type.md)
