Kobo Aura H2O detection: slight code refactoring.

This commit is contained in:
Frans de Jonge
2014-10-16 10:59:11 +02:00
parent 0f40042e57
commit c50bdfd11c

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