Cap FPS when entering text

This commit is contained in:
pelya
2013-03-07 15:04:37 +02:00
parent 8cfa012e5b
commit e08387c9db
3 changed files with 8 additions and 2 deletions

View File

@@ -460,6 +460,12 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
this.notify();
}
}
if( context.isScreenKeyboardShown() )
{
try {
Thread.sleep(50); // Give some time to the keyboard input thread
catch(Exception e) { };
}
return 1;
}