Skip to content

backends/native: pre-calculate a bezier pressure curve and use it for lookup

Peter Hutterer requested to merge whot/mutter:wip/bezier-pressurecurve into main

Fixes #3158 (closed)

This is the half-way approach between our currently (slightly "wrong", see #3158 (closed)) calculation of the pressure curve and what the xf86-input-wacom driver does - that one calculates every the bezier curve point for every single possible pressure axis value (all 8k of them) and stores those for quick lookup.

This approach samples N = 256 points on the bezier curve and does a linear interpolation between those points based on the actual pressure value received.


Draft because I need to so some more testing and think about whether all this really makes sense 😄

Merge request reports