Merge pull request #1003 from Frenzie/master

Kobo Aura H2O detection: slight code refactoring.
This commit is contained in:
Huang Xin
2014-10-16 18:27:32 +08:00

View File

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