touch_overl...cess_contact(9)
π touch_overl...cess_contact(9) π
okay so this is a page from the Kernel API Manual, and honestly? it's giving "small function, big job" energy. let's get into it π«Ά
β¨ NAME β¨
touch_overlay_process_contact β processes contacts according to the overlay mapping, bestie. literally what it does. this function acts as a filter so your calling driver gets released from the contacts that are either related to overlay buttons or out of the overlay touchscreen area, if that area is defined. like it's the bouncer at the club and some contacts just aren't on the list π
π¦ SYNOPSIS π¦
bool touch_overlay_process_contact (struct list_head *list , struct input_dev *input , struct input_mt_pos *pos , int slot );
copy it exactly, no cap π
πΈ ARGUMENTS πΈ
listβ pointer to the list that holds the segments. that's the vibe container, she's holding the segments fr.inputβ pointer to the input device associated to the contact. this is the device your contact is attached to πposβ pointer to the contact position. the coordinates, the location, the where-about, the β¨spotβ¨.slotβ the slot associated to the contact (0if multitouch is not supported). like the contact's assigned seat π
π₯ DESCRIPTION π₯
so here's the tea β this function returns true if the contact was processed β and by "processed" we mean it was reported for valid key events and dropped for contacts outside the overlay touchscreen area π (sorry to those contacts, they simply were not invited).
it returns false if the contact has to be processed by the caller instead. main character handoff energy π and in that case, this function shifts the (x,y) coordinates to the overlay touchscreen axis if required. yes, she moves the coords, that's part of the job π
π SEE ALSO π
- Kernel file
./drivers/input/touch-overlay.c touch_overlay_map(9)touch_overlay_get_touchscreen_abs(9)touch_overlay_mapped_touchscreen(9)touch_overlay_sync_frame(9)
like, go read the whole squad, iykyk π
okay that's the whole page bestie, and before you go β this one's filed under ./drivers/input, dated October 2026, and the page itself is touch_overl...cess_contact(9) in the Kernel API Manual. slay, go process 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