touchscreen_set_mt_pos(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the input_mt_pos you're setting coordinates of. like, this is the little container getting the makeover 🫢
  • prop β€” pointer to a struct touchscreen_properties. this is where the axis-inversion and swapping instructions live, iykyk
  • x β€” the X coordinate to store in pos
  • y β€” the Y coordinate to store in pos

πŸ”₯ 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 🌈


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