input_filter_device — allow input events to be filtered from higher layers
int input_filter_device ( | struct input_handle * handle) ; |
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.