Skip to content

tablet: handle direct tool switching

Fixes #259 (closed), cc @l0wl3vel, @diabl0w, @andreamaths, @MasonEdgel

When a tool switches between two tools directly - leaving one of the bits set (i.e. BTN_TOOL_PEN, then BTN_TOOL_ERASER without unsetting the pen first (or ever, in some cases)) we used to discard the current tool (see also #260 (closed)).

With this patchset we mangle the tool state so that the current tool is triggers a proximity out and the new tool triggers a proximity in, i.e. we switch properly to the new tool.

Merge request reports