Kobo: Run Generic:init dead last, like every other platform

This is semantically more correct, and should prevent platform-specific
weirdness if an ordering concern ever comes up (e.g., like it did for
the viewport stuff).
reviewable/pr10821/r1
NiLuJe 9 months ago
parent 71378b0b50
commit f44f92a864

@ -816,10 +816,6 @@ function Kobo:init()
-- And then handle the extra shenanigans if necessary.
self:initEventAdjustHooks()
-- Let generic properly setup the standard stuff
-- (*after* we've set our input hooks, so that the viewport translation runs last).
Generic.init(self)
-- Various HW Buttons, Switches & Synthetic NTX events
self.ntx_fd = self.input.open(self.ntx_dev)
-- Dedicated Power Button input device (if any)
@ -898,6 +894,10 @@ function Kobo:init()
if G_reader_settings:isTrue("input_no_key_repeats") then
self:toggleKeyRepeat(false)
end
-- Finally, Let Generic properly setup the standard stuff.
-- (Of particular import, this needs to come *after* we've set our input hooks, so that the viewport translation runs last).
Generic.init(self)
end
function Kobo:exit()

Loading…
Cancel
Save