From fb073c4d63b1920a5ac2a817df4c4b21e2bbfe76 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 21 Oct 2015 22:51:15 +0800 Subject: [PATCH] fix kobo touch probe The KOBO_TOUCH_MIRRORED is only used when init input device, after the initialization setting it will have no effect on the event adjust hook. --- utils/kobo_touch_probe.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/kobo_touch_probe.lua b/utils/kobo_touch_probe.lua index 1671ba69e..302e05825 100755 --- a/utils/kobo_touch_probe.lua +++ b/utils/kobo_touch_probe.lua @@ -91,7 +91,7 @@ if KOBO_TOUCH_MIRRORED == nil then UIManager:show(TouchProbe:new{}) UIManager:run() -- otherwise, we will use probed result - else - KOBO_TOUCH_MIRRORED = switch_xy + elseif switch_xy then + Input:registerEventAdjustHook(Input.adjustTouchSwitchXY) end end