input_mt_init_slots - initialize MT input slots
2. SYNOPSIS ▲
int input_mt_init_slots(struct input_dev * dev , unsigned int num_slots , unsigned int flags );
3. ARGUMENTS ▲
input device supporting MT events and finger tracking
number of slots used by the device
mt tasks to handle in core
4. DESCRIPTION ▲
This function allocates all necessary memory for MT slot handling in the input device, prepares the ABS_MT_SLOT and ABS_MT_TRACKING_ID events for use and sets up appropriate buffers. Depending on the flags set, it also performs pointer emulation and frame synchronization.
May be called repeatedly. Returns -EINVAL if attempting to reinitialize with a different number of slots.
5. COPYRIGHT ▲