add readerpaging and readermenu touch support

This commit is contained in:
Qingping Hou
2012-11-11 15:24:11 +08:00
parent 04942f9d94
commit d4e5b4cb06
4 changed files with 106 additions and 22 deletions

View File

@@ -58,6 +58,11 @@ function Device:isKindle2()
end
end
function Device:isTouchDevice()
local model = self:getModel()
return (model == "Kindle4") or (model == "KindlePaperWhite") or util.isEmulated()
end
function Device:intoScreenSaver()
--os.execute("echo 'screensaver in' >> /mnt/us/event_test.txt")
if self.charging_mode == false and self.screen_saver_mode == false then