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, signalActionPrefixFields inherited from class jme3utilities.SimpleAppState
assetManager, cam, flyCam, guiNode, guiViewPort, inputManager, renderManager, rootNode, simpleApplication, stateManager, viewPortFields inherited from class com.jme3.app.state.AbstractAppState
initialized -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd default hotkey bindings to mimic SimpleApplication.voidinitialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application) Initialize this (disabled) mode prior to its first update.voidProcess an action from the keyboard or mouse.voidUpdate 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, unmapAllMethods inherited from class jme3utilities.ui.AcorusAppState
getActionApplication, getSignals, getSpeedMethods inherited from class jme3utilities.SimpleAppState
refreshCachedFields, render, stateDetachedMethods inherited from class jme3utilities.NamedAppState
cleanup, getInfluence, hasInfluenceOver, influence, isEnabled, isInitialized, postRender, stateAttached, stopInfluencing, updateMethods 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:
defaultBindingsin 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:
initializein interfacecom.jme3.app.state.AppState- Overrides:
initializein 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)
-