|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface ActionListener
ActionListener
is used to receive input events in "digital" style.
Generally all button inputs, such as keyboard, mouse button, and joystick button, will be represented exactly. Analog inputs will be converted into digital.
When an action listener is registered to a natively digital input, such as a button,
the event will be invoked when the button is pressed, with value
set to true
, and will be invoked again when the button is released,
with value
set to false
.
メソッドの概要 | |
---|---|
void |
onAction(java.lang.String name,
boolean isPressed,
float tpf)
Called when an input to which this listener is registered to is invoked. |
メソッドの詳細 |
---|
void onAction(java.lang.String name, boolean isPressed, float tpf)
name
- The name of the mapping that was invokedisPressed
- True if the action is "pressed", false otherwisetpf
- The time per frame value.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |