---
name: "SDL_GetTouchDeviceType"
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_GetTouchDeviceType"
---

# SDL\_GetTouchDeviceType(3)

Get the type of the given touch device.

## NAME

SDL\_GetTouchDeviceType - Get the type of the given touch device.

## HEADER FILE

Defined in SDL3/SDL\_touch.h

## SYNOPSIS

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

**SDL\_TouchDeviceType SDL\_GetTouchDeviceType(SDL\_TouchID touchID);**

## FUNCTION PARAMETERS

- *touchID*

  the ID of a touch device.

## RETURN VALUE

( **SDL\_TouchDeviceType** ) Returns touch device type.

## AVAILABILITY

This function is available since SDL 3.2.0.
