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

# SDL\_GamepadTouchpadEvent(3type)

Gamepad touchpad event structure (event.gtouchpad.\*)

## NAME

SDL\_GamepadTouchpadEvent - Gamepad touchpad event structure (event.gtouchpad.\*)

## HEADER FILE

Defined in SDL3/SDL\_events.h

## SYNOPSIS

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

**typedef struct SDL\_GamepadTouchpadEvent** **{**     **SDL\_EventType type; /\*\*\< SDL\_EVENT\_GAMEPAD\_TOUCHPAD\_DOWN or SDL\_EVENT\_GAMEPAD\_TOUCHPAD\_MOTION or SDL\_EVENT\_GAMEPAD\_TOUCHPAD\_UP \*/**     **Uint32 reserved;**     **Uint64 timestamp;   /\*\*\< In nanoseconds, populated using SDL\_GetTicksNS() \*/**     **SDL\_JoystickID which; /\*\*\< The joystick instance id \*/**     **Sint32 touchpad;    /\*\*\< The index of the touchpad \*/**     **Sint32 finger;      /\*\*\< The index of the finger on the touchpad \*/**     **float x;            /\*\*\< Normalized in the range 0...1 with 0 being on the left \*/**     **float y;            /\*\*\< Normalized in the range 0...1 with 0 being at the top \*/**     **float pressure;     /\*\*\< Normalized in the range 0...1 \*/** **} SDL\_GamepadTouchpadEvent;**

## AVAILABILITY

This struct is available since SDL 3.2.0.
