TS_GET_EVENTPATH(3)
π TS_GET_EVENTPATH β bestie, where did that touchscreen even come from?? π
okay so real talk, this is ts_get_eventpath, page 3 of the tslib manual, and she is exactly what she sounds like: the girl who tells you the path to the currently opened touchscreen device file. no cap. π
β¨ 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 π
okay so ts_get_eventpath() β this function returns the path to the touchscreen device file that was opened with ts_open(). π
and here's the tea: if ts_setup() is used instead of calling ts_open() directly, it is often not known to the application in advance what that path even is. which is like. rude. so this function is your bestie who actually knows. π«Ά
π RETURN VALUE π
she returns the path to the touchscreen device file that was opened with ts_open(). β¨
and if it fails? it returns NULL. π no path, no vibes, just NULL. dramatic but honest.
π SEE ALSO π
mwah π this has been TS_GET_EVENTPATH from the tslib manual, section 3, living her little life down there at the bottom of the page. go call ts_setup() and then ask her where she's been. she'll tell you. periodt. πβ¨
π¦ where this page comes from
- alpine 3.24: tslib-doc 1.24-r0 Β· LGPL-2.0-or-later
- arch rolling: tslib 1.24-1 Β· LGPL-2.1-only
- debian bookworm: libts0 1.22-1+b1 Β· LGPL-2.0-or-later
- debian trixie: libts0t64 1.22-1.1+b1 Β· LGPL-2.0-or-later
- epel 10: tslib 1.23-2.el10_2 Β· LGPL-2.1-only
- epel 9: tslib 1.22-5.el9 Β· LGPLv2
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- nixos 26.05: tslib 1.24
- nixpkgs unstable: tslib 1.24
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- ubuntu jammy: libts0 1.22-1 Β· LGPL-2.0-or-later
- ubuntu noble: libts0t64 1.22-1.1build1 Β· LGPL-2.0-or-later
- ubuntu questing: libts0t64 1.22-1.1build1
- ubuntu resolute: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- ubuntu stonking: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- Copyright (c) 2017, Martin Kepplinger <martink@posteo.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms