Package jme3utilities.ui
Class DefaultInputMode
java.lang.Object
com.jme3.app.state.AbstractAppState
jme3utilities.NamedAppState
jme3utilities.SimpleAppState
jme3utilities.ui.AcorusAppState
jme3utilities.ui.InputMode
jme3utilities.ui.DefaultInputMode
- All Implemented Interfaces:
com.jme3.app.state.AppState
,com.jme3.input.controls.ActionListener
,com.jme3.input.controls.InputListener
The standard initial InputMode for an ActionApplication.
-
Field Summary
Fields inherited from class jme3utilities.ui.InputMode
comboActionPrefix, signalActionPrefix
Fields inherited from class jme3utilities.SimpleAppState
assetManager, cam, flyCam, guiNode, guiViewPort, inputManager, renderManager, rootNode, simpleApplication, stateManager, viewPort
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Add default hotkey bindings to mimic SimpleApplication.void
initialize
(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initialize this (disabled) mode prior to its first update.void
Process an action from the keyboard or mouse.void
Update the bindings to reflect the state of the FlyByCamera, if any.Methods inherited from class jme3utilities.ui.InputMode
activate, addActionName, bind, bind, bind, bind, bindLocal, binds, bindSignal, bindSignal, configPath, deactivate, findActionName, findMode, getActiveMode, getCursor, listActionNames, listCombos, listHotkeysLocal, loadBindings, mapAll, resumeLifo, saveBindings, setConfigPath, setCursor, setEnabled, shortName, suspendAndActivate, toString, unbind, unbind, unmapAll
Methods inherited from class jme3utilities.ui.AcorusAppState
getActionApplication, getSignals, getSpeed
Methods inherited from class jme3utilities.SimpleAppState
refreshCachedFields, render, stateDetached
Methods inherited from class jme3utilities.NamedAppState
cleanup, getInfluence, hasInfluenceOver, influence, isEnabled, isInitialized, postRender, stateAttached, stopInfluencing, update
Methods inherited from class com.jme3.app.state.AbstractAppState
getId, setId
-
Method Details
-
updateBindings
public void updateBindings()Update the bindings to reflect the state of the FlyByCamera, if any. -
defaultBindings
protected void defaultBindings()Add default hotkey bindings to mimic SimpleApplication. These bindings will be used if no custom bindings are found. They are handled by the ActionApplication class.- Specified by:
defaultBindings
in classInputMode
-
initialize
public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initialize this (disabled) mode prior to its first update.- Specified by:
initialize
in interfacecom.jme3.app.state.AppState
- Overrides:
initialize
in classInputMode
- Parameters:
stateManager
- (not null)application
- (not null)
-
onAction
Process an action from the keyboard or mouse.- Parameters:
actionString
- textual description of the action (not null)ongoing
- true if the action is ongoing, otherwise falsetpf
- time interval between frames (in seconds, ≥0)
-