mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add readerpaging and readermenu touch support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user