Mimicking a simple application

The default input mode includes functionality to mimic certain input bindings typically provided by a SimpleApplication.

HelloSimpleApplication

HelloSimpleApplication is an example application that modifies HelloAcorus by attaching a StatsAppState, a DebugKeysAppState, and a FlyByCamera.

When the default input mode detects a StatsAppState, it binds F5 to an action that toggles visibility of JMonkeyEngine’s render statistics.

When the default input mode detects a DebugKeysAppState, it bind 2 hotkeys (C and M on "US" QWERTY keyboards) to actions that print the camera position and memory statistics to the console.

When the default input mode detects a FlyByCamera, it binds 6 hotkeys (W, A, S, D, Q, and Z on "US" QWERTY keyboards) to signals that move the 3-D camera.

Users accustomed to SimpleApplication will expect these bindings. However, Acorus also makes it easy for applications to reconfigure them.

Summary

  • In the default configuration, Acorus applications are compatible with StatsAppState, DebugKeysAppState, and FlyByCamera.