-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
chrox
Member
|
||
function Input:handleTouchEv(ev) | ||
return Input:handleTypeBTouchEv(ev) | ||
end | ||
|
2 comments
on commit 629c32f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The and
is correct, otherwise Device:getModel() ~= 'Kobo_phoenix'
would evaluate as true on the H2O and vice versa on the Kobo Aura. However, I definitely prefer what @chrox wrote. The whole idea of "if not specific case then do generic stuff else do specific stuff" as opposed to "if specific case then do specific stuff else do generic stuff" felt odd to me from the get-go.I'll make another pull request with this change if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree. Please send another PR, thanks.
I think the "and" is wrong. It should be:
if Device:getModel() ~= 'Kobo_phoenix' or Device:getModel() ~= 'Kobo_dahlia' then