---
name: "ts_get_eventpath"
section: "3"
platform: "linux"
package: "tslib"
version: "1.24-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ts_get_eventpath"
---

# ts\_get\_eventpath(3)

get the path to the currently opened touchscreen device file

## NAME

ts\_get\_eventpath - get the path to the currently opened touchscreen device file

## SYNOPSIS

```
#include <tslib.h>

char *ts_get_eventpath(struct tsdev *tsdev);

```

## DESCRIPTION

**ts\_get\_eventpath**() This function returns the path to the touchscreen device file that was opened with ts\_open(). In case ts\_setup() is used instead of ts\_open() directly, it is often not known to the application in advance.

## RETURN VALUE

This function returns the path to the touchscreen device file that was opened with ts\_open(). It returns NULL in case of failure.

## SEE ALSO

[**ts\_setup**(3)](/ts_setup/3.md), [**ts\_read**(3)](/ts_read/3.md), [**ts.conf**(5)](/ts.conf/5.md)
