<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libinput incorrectly normalizes tablet distance values"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95074">95074</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libinput incorrectly normalizes tablet distance values
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>libinput
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>killertofu@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Commit 25a9f39 ("tablet: fix the airbrush slider range") has caused libinput to
start normalizing distance values to the range [-1, 1] instead of the expected
[0, 1]. This can be easily seen by bringing a tool into prox while running
libinput-debug-events:
event16 TABLET_TOOL_PROXIMITY +2.85s 91.11*/91.11* distance:
0.30* rotation: 0.00* wheel: 15.00* (1) mouse (0xa00, id 0x17)
proximity-in axes:drw btn:LMRSdEx
event16 TABLET_TOOL_AXIS +2.87s 91.21*/91.21* distance: 0.30
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.87s 91.28*/91.28* distance: 0.30
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.88s 91.34*/91.34* distance: 0.21*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.89s 91.34/91.34* distance: 0.21
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.90s 91.46*/91.46* distance: 0.21
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.91s 91.46/91.46* distance: 0.11*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.92s 91.58*/91.58* distance: 0.11
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.93s 91.64*/91.64* distance: 0.02*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.94s 91.75*/91.75* distance: 0.02
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.95s 91.83*/91.83* distance: 0.02
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.96s 91.92*/91.92* distance: -0.08*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.97s 91.92/91.92* distance: -0.08
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.98s 91.92/91.92* distance: -0.17*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +2.99s 91.84*/91.84* distance: -0.17
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.00s 91.74*/91.74* distance: -0.17
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.01s 91.60*/91.60* distance: -0.30*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.03s 91.57*/91.57 distance: -0.30
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.04s 91.57/91.57* distance: -0.30
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.05s 91.57/91.57 distance: -0.40*
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.06s 91.57/91.57* distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.07s 91.62*/91.62 distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.11s 91.66*/91.66 distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.15s 91.74*/91.74 distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.15s 91.74/91.74* distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.17s 91.74/91.74* distance: -0.40
rotation: 0.00 wheel: 0.00 (0)
event16 TABLET_TOOL_AXIS +3.19s 91.85*/91.85 distance: -0.49*
rotation: 0.00 wheel: 0.00 (0)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>