Force initialization of FrontLight in Input:init() to avoid glitches in Kobo
This commit is contained in:
1 parent
1c3bf6f2cb
commit
44258d4ba6
1 file changed
+1
@@ -264,6 +264,7 @@ function Input:init()
|
||||
if Device:isTouchDevice() then
|
||||
self:initTouchState()
|
||||
end
|
||||
Device:getFrontlight() -- forces initialization
|
||||
-- set up fake event map
|
||||
self.event_map[10000] = "IntoSS" -- go into screen saver
|
||||
self.event_map[10001] = "OutOfSS" -- go out of screen saver
|
||||
|
||||
Reference in new issue
Block a user