---
name: "SDL_TouchDeviceType"
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_TouchDeviceType"
---

# SDL\_TouchDeviceType(3type)

An enum that describes the type of a touch device.

## NAME

SDL\_TouchDeviceType - An enum that describes the type of a touch device.

## HEADER FILE

Defined in SDL3/SDL\_touch.h

## SYNOPSIS

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

**typedef enum SDL\_TouchDeviceType** **{**     **SDL\_TOUCH\_DEVICE\_INVALID = -1,**     **SDL\_TOUCH\_DEVICE\_DIRECT,            /\*\*\< touch screen with window-relative coordinates \*/**     **SDL\_TOUCH\_DEVICE\_INDIRECT\_ABSOLUTE, /\*\*\< trackpad with absolute device coordinates \*/**     **SDL\_TOUCH\_DEVICE\_INDIRECT\_RELATIVE  /\*\*\< trackpad with screen cursor-relative coordinates \*/** **} SDL\_TouchDeviceType;**

## AVAILABILITY

This enum is available since SDL 3.2.0.
