/** * 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()); }
/** * Dispatches the given event to the default input manager for the root of * this canvas. * * @param awtEvent awt event needing dispatching * @param type type of the event */ protected void sendInputEventToInputManager(final InputEvent awtEvent, final int type) { getRoot().getDefaultInputManager().processEventFromCamera(awtEvent, type, getCamera()); }