pass device object to input FFI module

this is needed (for now) on Android, since the FFI module triggers
screen updates.
update base

pulls changes to fix Android input/framebuffer API interaction