mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
pass device object to input FFI module
this is needed (for now) on Android, since the FFI module triggers screen updates.
This commit is contained in:
@@ -120,6 +120,8 @@ function Input:init()
|
||||
screen = self.device.screen,
|
||||
input = self,
|
||||
}
|
||||
-- allow access to device object in FFI API
|
||||
input.device = self.device
|
||||
|
||||
-- set up fake event map
|
||||
self.event_map[10000] = "IntoSS" -- go into screen saver
|
||||
|
||||
Reference in New Issue
Block a user