touchscreen_set_mt_pos(9)
π touchscreen_set_mt_pos β like, the Kernel API Manual page, bestie
okay so picture this: you're deep in the kernel, you've got raw touch coordinates, and you just want them to make sense. that's this function. it's giving "glow-up for numbers" β¨
πΈ NAME πΈ
touchscreen_set_mt_pos β sets the coordinates in an input_mt_pos. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
void touchscreen_set_mt_pos (struct input_mt_pos *pos , const struct
touchscreen_properties *prop , unsigned int x , unsigned int y );
no cap, that's the exact signature. don't @ me about the line break, it came like that π
π ARGUMENTS π
posβ theinput_mt_posyou're setting coordinates of. like, this is the little container getting the makeover π«Άpropβ pointer to astruct touchscreen_properties. this is where the axis-inversion and swapping instructions live, iykykxβ the X coordinate to store inposyβ the Y coordinate to store inpos
π₯ DESCRIPTION π₯
here's the tea β: you hand it an x and a y, and it adjusts them β applying whatever axis inversion and swapping was requested in the touchscreen_properties you passed in β and then it stores the result in a struct input_mt_pos.
literally the whole plot. transform in, transform out, main character energy the entire time π β¨
π SEE ALSO π
- the kernel file
./drivers/input/touchscreen.cβ go read it, it's iconic touchscreen_parse_properties(9)β the one that figures out all those properties in the first placetouchscreen_report_pos(9)β the sibling function, also ate π
and that's the page!! fr fr you're basically a touchscreen expert now π§
source path: ./drivers/input Β· dated October 2026 Β· touchscreen_set_mt_pos(9) β mwah, catch you in the next manpage bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms