wacom: make relative/abs events more obvious in the log

Mark the deltas with a * if they're the ones that changed.
This commit is contained in:
Peter Hutterer 2018-02-14 12:32:42 +10:00
parent 80d0066cef
commit 6c156efc01
1 changed files with 4 additions and 1 deletions

View File

@ -643,7 +643,10 @@ class WacomProtocolBase(WacomProtocolLowLevelComm):
y += dy
p += dp
logger.info(f'point at {x},{y} ({dx:+}, {dy:+}) with pressure {p} ({dp:+})')
xr = '*' if xrel else ''
yr = '*' if yrel else ''
pr = '*' if prel else ''
logger.info(f'point at {x},{y} ({dx:+}{xr}, {dy:+}{yr}) with pressure {p} ({dp:+}{pr})')
if bitmask & 0b00111100 == 0:
continue