Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 757 Bytes

File metadata and controls

33 lines (25 loc) · 757 Bytes

Mouse Pressure Plotter

Used to visualize the movement and pressure of trackpad events captured using libinput record

Usage

first, record some output using libinput:

$ libinput record /dev/input/event15 > data

replace the device path with whatever your trackpad is assigned. Then input your test movements and stop recording with crtrl-c.

Now run the script:

./mouse_data_parser.py data

it should generate a 3d plot that shows the trajectory and pressure recorded for the trackpad during the test input.

Requirements

  • A sane linux installation
  • Python 3
  • libinput
  • numpy
  • pandas
  • sympy (not actually used but could allow for some interesting analysis)
  • matplotlib (pyplot)
  • mpl_toolkits (mplot3d)