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:
Hans-Werner Hilse
2014-11-23 12:05:29 +00:00
parent 57a27f8f24
commit 39d061fd3a

View File

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