input_mt_rep...finger_count(9)
hey bestie π welcome to the Kernel API Manual page for input_mt_rep...finger_count(9) β yep, the manual name is serving abbreviated-ellipsis realness, but the function we're actually hyping is input_mt_report_finger_count, and she is the main character here. π
πΈ NAME πΈ
input_mt_report_finger_count β report contact count. That's the whole assignment, and she ate. β¨
β¨ SYNOPSIS β¨
void input_mt_report_finger_count (struct input_dev *dev , int count );
ngl the signature is giving void, with dev and count showing up exactly like that. no extra drama, periodt. π
π«Ά ARGUMENTS π«Ά
devβ input device with allocated MT slots. hand over the device that already has its MT slots allocated, bestie. πcountβ the number of contacts. literally the contact count, fr fr. π
π DESCRIPTION π
Okay so this function reports the contact count via these iconic button events: BTN_TOOL_FINGER, BTN_TOOL_DOUBLETAP, BTN_TOOL_TRIPLETAP, and BTN_TOOL_QUADTAP. periodt. π₯
Here's the safety-vibe note: the input core ensures only the KEY events already setup for this device will produce output. so the output stays selective, iykyk. π
π SEE ALSO π
The Kernel file ./drivers/input/input-mt.c is right there, plus all these related besties:
input_mt_init_slots(9)input_mt_destroy_slots(9)input_mt_report_slot_state(9)input_mt_report_pointer_emulation(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)
k bye bestie π«Ά β this page's source is ./drivers/input, it's dated October 2026, and input_mt_rep...finger_count(9) is signing off with a little sparkle. slay. π
β¨
π¦ 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