mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo Aura H2O detection: slight code refactoring.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user