Merge pull request #999 from Frenzie/master

Changes for Kobo Aura H2O.
pull/1000/head
HW 10 years ago
commit 0f40042e57

@ -158,7 +158,7 @@ function Device:hasFrontlight()
if self.has_front_light ~= nil then return self.has_front_light end
local model = self:getModel()
self.has_front_light = (model == "KindlePaperWhite") or (model == "KindlePaperWhite2")
or (model == "Kobo_dragon") or (model == "Kobo_kraken") or (model == "Kobo_phoenix")
or (model == "Kobo_dahlia") or (model == "Kobo_dragon") or (model == "Kobo_kraken") or (model == "Kobo_phoenix")
or util.isEmulated()
return self.has_front_light
end

@ -148,7 +148,7 @@ function Screen:getDPI()
self.dpi = 212
elseif model == "Kobo_phoenix" then
self.dpi = 212.8
elseif model == "Kobo_dragon" then
elseif model == "Kobo_dragon" or model == "Kobo_dahlia" then
self.dpi = 265
elseif model == "Kobo_pixie" then
self.dpi = 200

@ -472,7 +472,7 @@ function Input:init()
end
end
if Device:getModel() ~= 'Kobo_phoenix' then
if Device:getModel() ~= 'Kobo_phoenix' and Device:getModel() ~= 'Kobo_dahlia' then
function Input:handleTouchEv(ev)
return Input:handleTypeBTouchEv(ev)
end

Loading…
Cancel
Save