The given InputListener will be registered to receive events on the specified mapping names. When a mapping raises an event, the listener will have its appropriate method invoked, either {@link ActionListener#onAction(java.lang.String,boolean,float) }or {@link AnalogListener#onAnalog(java.lang.String,float,float) }depending on which interface the listener
implements. If the listener implements both interfaces, then it will receive the appropriate event for each method.
@param listener The listener to register to receive input events.
@param mappingNames The mapping names which the listener will receiveevents from.
@see InputManager#removeListener(com.jme3.input.controls.InputListener)
|
|
|
|