From 20447e820b3d39ca47f25bec529a7bda08115ca3 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Thu, 14 Mar 2013 21:24:50 -0400 Subject: [PATCH 1/2] fix: properly initilize key_map for KT --- frontend/ui/inputevent.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index b7dfd1a3c..2b2805553 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -286,6 +286,8 @@ function Input:init() elseif dev_mod == "KindleTouch" then input.open("/dev/input/event2") -- Home button input.open("/dev/input/event3") -- touchscreen + -- KT does have one key! + self.event_map[102] = "Home" -- update event hook function Input:eventAdjustHook(ev) if ev.type == EV_ABS then From bab5192a86487c3b41485796c8c2db187f58abb3 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Thu, 14 Mar 2013 22:24:15 -0400 Subject: [PATCH 2/2] fix: add empty Input.modifiers for KT from eureka --- frontend/ui/inputevent.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index 2b2805553..5daec6c61 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -120,6 +120,7 @@ an interface to get input events ]] Input = { event_map = {}, + modifiers = {}, rotation_map = { [0] = {}, [1] = { Up = "Right", Right = "Down", Down = "Left", Left = "Up" },