Skip to content
Snippets Groups Projects
Commit 2dd9b77c authored by Peter Hutterer's avatar Peter Hutterer
Browse files

test: add helper functions to filter an event


Simplest implementation for what we need right now, it turns off an event on
the evdev device and turns it back on again. This allows us to change bits in
the 'normal' event stream, such as changing the tool type without triggering
proximity events for the BTN_TOOL_PEN that all test devices send by default.

This won't work for absolute devices because we need to re-enable with a
struct input_absinfo. But we don't need that ability for now anyway.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 47fbd8f9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment