input_mt_re...er_emulation(9)
π input_mt_re...er_emulation(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes the title is literally truncated like that on the page, input_mt_re...er_emulation(9), and no I will not be explaining why, the kernel just does that sometimes π«Ά. This is the whole thing about common pointer emulation, and it's lowkey iconic. Let's get into it.
β¨ NAME β¨
input_mt_report_pointer_emulation β common pointer emulation π
πΈ SYNOPSIS πΈ
void input_mt_report_pointer_emulation (struct input_dev *dev , bool
use_count );
like, that's the whole call signature, no cap π
π¦ ARGUMENTS π¦
devβ the input device that's got MT slots allocated already, bestie. If it doesn't have them, this is not the vibe πuse_countβ when this is true, you're reporting the number of active contacts as the finger count. fr fr, that's it π«Ά
β DESCRIPTION β
So what does it actually do? It performs legacy pointer emulation via BTN_TOUCH, ABS_X, ABS_Y and ABS_PRESSURE π β yes, the old-school squad, still showing up to the function, main character energy tbh.
Touchpad finger count gets emulated if use_count is true π
periodt.
And here's the part you cannot skip, bestie, write it on your hand: the input core ensures only the KEY and ABS axes already setup for this device will produce output π. So like. If it wasn't set up, it's not coming out. That's the vibe check and everything passes it β¨.
π SEE ALSO π
Kernel file ./drivers/input/input-mt.c β the source file, go read it, it's giving lore π
input_mt_init_slots(9)input_mt_destroy_slots(9)input_mt_report_slot_state(9)input_mt_report_finger_count(9)input_mt_drop_unused(9)input_mt_release_slots(9)input_mt_sync_frame(9)input_mt_assign_slots(9)input_mt_get_slot_by_key(9)
the whole friend group honestly, all of them slay π§ββοΈπ
ok that's the whole page, no gatekeeping here π
and finally, the cute sign-off: this lil masterpiece lives in ./drivers/input, it's dated October 2026 πΈ, and it's filed under input_mt_re...er_emulation(9) β yeah, same truncated name, it's a whole aesthetic at this point πβ¨ byeee π¦π
π¦ 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