From 6c9b76de4f0fa90b00b6d6493a87f9bbcda600e4 Mon Sep 17 00:00:00 2001 From: Giorgio Micotti Date: Wed, 10 Jul 2013 21:16:49 +0200 Subject: [PATCH] Fix bug #144. --- frontend/ui/inputevent.lua | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index a271e01a5..a87d2311f 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -318,22 +318,24 @@ function Input:init() Device:setTouchInputDev("/dev/input/event1") input.open("/dev/input/event0") -- Light button and sleep slider print(_("Auto-detected Kobo")) - function Input:eventAdjustHook(ev) - if ev.type == EV_ABS then - if ev.code == ABS_X then - ev.code = ABS_Y - elseif ev.code == ABS_Y then - ev.code = ABS_X - -- We always have to substract from the physical x, - -- regardless of the orientation - if (Screen.width