Event Handling¶
The zividomelive constructor registers keyEvent and mouseEvent Processing hooks. The built-in ControlP5 panel registers one listener that forwards relevant events to the active scene.
Implement callbacks on the scene:
public void keyEvent(processing.event.KeyEvent event) {}
public void mouseEvent(processing.event.MouseEvent event) {}
public void controlEvent(controlP5.ControlEvent event) {}
Do not add main-sketch forwarding such as ziviDome.keyEvent(event). That delivers the same event twice.
Global Shortcuts¶
h: toggle the built-in panelm: cycle the configured legacy preview view- Left/Right arrows: previous/next scene
Global shortcuts run before the event reaches the scene.
Camera Input¶
When setSceneCameraInputEnabled(true) is active, mouse events also reach the scene-space OrbitCamera. Standard perspective-camera input remains a separate service.
All registered callbacks are removed during terminal disposal.