tools: record: record the EV_ABS deltas along with the absolute value
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 31 Jan 2020 08:03:01 +0000 (18:03 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 31 Jan 2020 10:40:49 +0000 (10:40 +0000)
commit0a2bbdf6e74b7d11e49b8ed69890818406c810d5
treef0532ce7e82b5050d932473b58c4dc8a48af0f58
parent2059a015ae099cdd6a0a2f1ca5560fbccc6fa4b0
tools: record: record the EV_ABS deltas along with the absolute value

It's useful to have this in the immediate recording. Example output now:

 - evdev:
    - [  2, 300309,   3,  47,       0] # EV_ABS / ABS_MT_SLOT               0
    - [  2, 300309,   3,  54,    3547] # EV_ABS / ABS_MT_POSITION_Y      3547 (+8)
    - [  2, 300309,   3,  58,      70] # EV_ABS / ABS_MT_PRESSURE          70 (-14)
    - [  2, 300309,   3,  47,       1] # EV_ABS / ABS_MT_SLOT               1
    - [  2, 300309,   3,  54,    3112] # EV_ABS / ABS_MT_POSITION_Y      3112 (+4)
    - [  2, 300309,   3,  58,      68] # EV_ABS / ABS_MT_PRESSURE          68 (-4)
    - [  2, 300309,   3,   1,    3547] # EV_ABS / ABS_Y                  3547 (+8)
    - [  2, 300309,   3,  24,      70] # EV_ABS / ABS_PRESSURE             70 (-14)
    - [  2, 300309,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +49ms

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c