Name

input_filter_device — allow input events to be filtered from higher layers

Synopsis

int input_filter_device (struct input_handle * handle);
 

Arguments

handle

input handle that wants to filter the device

Description

When a device is filtered by an input handle all events generated by the device are to this handle. If the filter function returns true then the event is discarded rather than being passed to any other input handles, otherwise it is passed to them as normal. Grabs will be handled before filters, so a grabbed device will not deliver events to a filter function.