STRUCT INPUT_MT(9)
π NAME π
okay so welcome to the struct input_mt(9) page bestie β this is the kernel API manual, and it's literally about the state of tracked contacts. multi-touch tracking, the whole vibe. no cap π
π¦ SYNOPSIS π¦
struct input_mt {
int trkid;
int num_slots;
int slot;
unsigned int flags;
unsigned int frame;
int *red;
struct input_mt_slot slots[];
};
β¨ Members β¨
okay so here's the whole cast, member by member, and yes they all ate π
trkidβ stores MT tracking ID for the next contact π«Άnum_slotsβ number of MT slots the device uses (so like, how many fingers it can handle at once, iconic)slotβ the MT slot currently being transmitted π‘flagsβ input_mt operation flagsframeβ increases every timeinput_mt_sync_frameis called (it just keeps going up, main character energy honestly)redβ reduced cost matrix for in-kernel tracking π§slotsβ array of slots holding current values of tracked contacts πΈ
π₯ SEE ALSO π₯
go read these next, bestie, iykyk:
- Kernel file
./include/linux/input/mt.h struct input_mt_slot(9)struct input_mt_pos(9)
and that's the whole page fr fr π this one lives in ./include/linux/input, dated October 2026, and yes it's still struct input_mt(9) β slay, go track some contacts π¦β¨
π¦ 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