void entryCallback(int state) { Application* app = (Application*)Application::TheApplication; if (app) app->onEntry(); }