Merge pull request #166 from chrox/master

android fix, now we can run into input.waitForEvent
allow input module trigger framebuffer refreshes for Android
Merge pull request #167 from hwhw/master

allow input module trigger framebuffer refreshes for Android
wait for INIT_WINDOW cmd when opening framebuffer
for the first time so that we can query app window
for width and height to init the BlitBuffer