From fc2d607d78c0f24b420d04416765ad3e56b96c4f Mon Sep 17 00:00:00 2001 From: Giorgio Micotti Date: Thu, 13 Jun 2013 11:32:49 +0200 Subject: [PATCH] Fixed Landscape input handling. --- frontend/ui/inputevent.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index f29835c51..95480d57c 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -323,8 +323,14 @@ function Input:init() if ev.code == ABS_X then ev.code = ABS_Y elseif ev.code == ABS_Y then - ev.code = ABS_X - ev.value = Screen.width - ev.value + ev.code = ABS_X + -- We always have to substract from the physical x, + -- regardless of the orientation + if (Screen.width