1INPUT_MT_ASSIGN_SLOT(9) Input Subsystem INPUT_MT_ASSIGN_SLOT(9)
2
3
4
6 input_mt_assign_slots - perform a best-match assignment
7
9 int input_mt_assign_slots(struct input_dev * dev, int * slots,
10 const struct input_mt_pos * pos, int num_pos,
11 int dmax);
12
14 dev
15 input device with allocated MT slots
16
17 slots
18 the slot assignment to be filled
19
20 pos
21 the position array to match
22
23 num_pos
24 number of positions
25
26 dmax
27 maximum ABS_MT_POSITION displacement (zero for infinite)
28
30 Performs a best match against the current contacts and returns the slot
31 assignment list. New contacts are assigned to unused slots.
32
33 The assignments are balanced so that all coordinate displacements are
34 below the euclidian distance dmax. If no such assignment can be found,
35 some contacts are assigned to unused slots.
36
37 Returns zero on success, or negative error in case of failure.
38
40Kernel Hackers Manual 3.10 June 2019 INPUT_MT_ASSIGN_SLOT(9)