input_mt_get_slot_by_key
Prev | Multitouch Library | Next

## Name

input_mt_get_slot_by_key — return slot matching key

## Synopsis

`int input_mt_get_slot_by_key (` | struct input_dev * dev,
| int key`)`;

## Arguments

`dev`

  input device with allocated MT slots

`key`

  the key of the sought slot

## Description

Returns the slot of the given key, if it exists, otherwise set the key on the first unused slot and return.

If no available slot can be found, -1 is returned.

Prev | Up | Next
input_mt_assign_slots | Home | Polled input devices