---
name: "SDL_PenID"
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_PenID"
---

# SDL\_PenID(3type)

SDL pen instance IDs.

## NAME

SDL\_PenID - SDL pen instance IDs.

## HEADER FILE

Defined in SDL3/SDL\_pen.h

## SYNOPSIS

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

**typedef Uint32 SDL\_PenID;**

## DESCRIPTION

Zero is used to signify an invalid/null device.

These show up in pen events when SDL sees input from them. They remain consistent as long as SDL can recognize a tool to be the same pen; but if a pen physically leaves the area and returns, it might get a new ID.

## AVAILABILITY

This datatype is available since SDL 3.2.0.
