table of contents
INPUT_MT_ASSIGN_SLOT(9) | Input Subsystem | INPUT_MT_ASSIGN_SLOT(9) |
NAME¶
input_mt_assign_slots - perform a best-match assignment
SYNOPSIS¶
int input_mt_assign_slots(struct input_dev * dev, int * slots, const struct input_mt_pos * pos, int num_pos, int dmax);
ARGUMENTS¶
dev
slots
pos
num_pos
dmax
DESCRIPTION¶
Performs a best match against the current contacts and returns the slot assignment list. New contacts are assigned to unused slots.
The assignments are balanced so that all coordinate displacements are below the euclidian distance dmax. If no such assignment can be found, some contacts are assigned to unused slots.
Returns zero on success, or negative error in case of failure.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |