Force initialization of FrontLight in Input:init() to avoid glitches in Kobo

This commit is contained in:
Paulo Matias
2013-08-12 16:41:39 -03:00
parent 1c3bf6f2cb
commit 44258d4ba6

View File

@@ -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