---
name: "SDL_HAPTIC_SQUARE"
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_SQUARE"
---

# SDL\_HAPTIC\_SQUARE(3)

Square wave effect supported.

## NAME

SDL\_HAPTIC\_SQUARE - Square wave effect supported.

## HEADER FILE

Defined in SDL3/SDL\_haptic.h

## SYNOPSIS

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

**#define SDL\_HAPTIC\_SQUARE       (1u\<\<2)**

## DESCRIPTION

Periodic haptic effect that simulates square waves.

## AVAILABILITY

This macro is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_HapticPeriodic**(3type)](/SDL_HapticPeriodic/3type.md)
