// Initialize the input manager.
// Note: this also creates the view manager.
// TODO: low bug: we would like to initialize the input manager BEFORE
// frame.setVisible. But if we create the camera before frame.setVisible
// the client window never appears.
CameraComponent cameraComp = viewManager.getCameraComponent();
InputManager inputManager = ClientContext.getInputManager();
inputManager.initialize(frame.getCanvas(), cameraComp);
// Default Policy: Enable global key and mouse focus everywhere
// Note: the app base will impose its own (different) policy later