Time-adjust on all reMarkable events, not just EV_ABS (#7066)

This commit is contained in:
Glen Sawyer
2020-12-28 11:08:28 -07:00
committed by GitHub
parent 9db4e29bb1
commit 578f92e424

View File

@@ -70,8 +70,8 @@ local Remarkable2 = Remarkable:new{
}
function Remarkable2:adjustTouchEvent(ev, by)
ev.time = TimeVal:now()
if ev.type == EV_ABS then
ev.time = TimeVal:now()
-- Mirror Y and scale up both X & Y as touch input is different res from
-- display
if ev.code == ABS_MT_POSITION_X then