input_mt_assign_slots
Prev | Multitouch Library | Next

## 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`)`;

## Arguments

`dev`

  input device with allocated MT slots

`slots`

  the slot assignment to be filled

`pos`

  the position array to match

`num_pos`

  number of positions

## Description

Performs a best match against the current contacts and returns the slot assignment list. New contacts are assigned to unused slots.

Returns zero on success, or negative error in case of failure.

Prev | Up | Next
input_mt_sync_frame | Home | input_mt_get_slot_by_key