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