|
|
@@ -266,7 +266,6 @@ Mappings registered to the *ActionListener* are digital either-or actions –
|
|
|
* Example: Pause button, shooting, selecting, jumping, one-time click interactions.
|
|
|
|
|
|
[TIP]
|
|
|
-
|
|
|
====
|
|
|
It's very common that you want an action to be only triggered once, in the moment when the key is _released_. For instance when opening a door, flipping a boolean state, or picking up an item. To achieve that, you use an `ActionListener` and test for `… && !keyPressed`. For an example, look at the Pause button code:
|
|
|
|
|
|
@@ -278,6 +277,7 @@ It's very common that you want an action to be only triggered once, in the momen
|
|
|
----
|
|
|
====
|
|
|
|
|
|
+
|
|
|
== Table of Triggers
|
|
|
|
|
|
You can find the list of input constants in the files `src/core/com/jme3/input/KeyInput.java`, `JoyInput.java`, and `MouseInput.java`. Here is an overview of the most common triggers constants:
|