From 424776b564b00522ba26e4e6c341c4dbcfb4ed85 Mon Sep 17 00:00:00 2001 From: eureka <@mobileread.com> Date: Tue, 11 Dec 2012 13:14:41 +0800 Subject: [PATCH] fix bug in eventhook for KT * no return * it is value that should be changed --- frontend/ui/inputevent.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index daa21ec40..4c5712d0a 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -272,11 +272,12 @@ function Input:init() --@TODO handle coordinates properly after --screen rotate. (houqp) if ev.code == ABS_MT_POSITION_X then - ev.code = math.round(ev.code * (600/4095)) + ev.value = math.round(ev.value * (600/4095)) elseif ev.code == ABS_MT_POSITION_Y then - ev.code = math.round(ev.code * (800/4095)) + ev.value = math.round(ev.value * (800/4095)) end end + return ev end print("Auto-detected Kindle Touch") elseif dev_mod == "Kindle4" then