diff --git a/frontend/ui/input.lua b/frontend/ui/input.lua index 6afd11aac..0c9955523 100644 --- a/frontend/ui/input.lua +++ b/frontend/ui/input.lua @@ -321,13 +321,26 @@ function Input:init() input.open("/dev/input/event0") -- Light button and sleep slider print(_("Auto-detected Kobo")) self:adjustKoboEventMap() - if dev_mod ~= 'Kobo_trilogy' and dev_mod ~= 'Kobo_phoenix' then + if dev_mod ~= 'Kobo_trilogy' then 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 + ev.code = ABS_X + -- We always have to substract from the physical x, + -- regardless of the orientation + if (Screen.width