/** * Return true if this canvas has been marked as interacting, or whether * it's root is interacting. If so the canvas will normally render at a * lower quality that is faster. * * @return whether the canvas has been flagged as being interacted with */ public boolean getInteracting() { return interacting > 0 || getRoot().getInteracting(); }
/** * Return true if any activities that respond with true to the method * isAnimating were run in the last PRoot.processInputs() loop. This values * is used by this canvas to determine the render quality to use for the * next paint. * * @return whether the PCanvas is currently being animated */ public boolean getAnimating() { return getRoot().getActivityScheduler().getAnimating(); }
/** * Sends the given input event with the given type to the current * InputManager. * * @param event event to dispatch * @param type type of event being dispatched */ protected void sendInputEventToInputManager(final InputEvent event, final int type) { getRoot().getDefaultInputManager().processEventFromCamera(event, type, getCamera()); }