Skip to content
Snippets Groups Projects

examples: add an example for a fake tablet

Merged Peter Hutterer requested to merge whot/python-libevdev:wip/fake-tablet-example into master

Testing tablets without acces to the hw is reasonably common, let's provide a simple example that can be extended to the user's liking.

cc @linkmauve

run with sudo examples/fake-tablet.py. It's a very basic script but shouldn't be too hard to figure out how to extend this to your liking. change the pressure to fake tip down/up events, use BTN_STYLUS to simulate a pen button click. Change to BTN_TOOL_RUBBER as noted in the code to test the eraser end.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading