@Override public void _c_addActionsToEvents( EventManager eventManager, CustomGLSurfaceView arView, SystemUpdater updater) { ActionMoveCameraBuffered move = new ActionMoveCameraBuffered(camera, 5, 25); arView.addOnTouchMoveAction(move); eventManager.addOnTrackballAction(move); Action rot = new ActionRotateCameraBuffered(camera); updater.addObjectToUpdateCycle(rot); eventManager.addOnOrientationChangedAction(rot); eventManager.addOnLocationChangedAction(new ActionCalcRelativePos(world, camera)); }
@Override public void addElementsToUpdateThread(SystemUpdater updater) { updater.addObjectToUpdateCycle(mWorld); updater.addObjectToUpdateCycle(mWasdAction); updater.addObjectToUpdateCycle(mRotateGLCameraAction); }
@Override public void _d_addElementsToUpdateThread(SystemUpdater worldUpdater) { worldUpdater.addObjectToUpdateCycle(world); }