com.jme3.input.event
クラス JoyButtonEvent

java.lang.Object
  上位を拡張 com.jme3.input.event.InputEvent
      上位を拡張 com.jme3.input.event.JoyButtonEvent

public class JoyButtonEvent
extends InputEvent

Joystick button event.


コンストラクタの概要
JoyButtonEvent(int joyIdx, int btnIdx, boolean pressed)
           
 
メソッドの概要
 int getButtonIndex()
          The button index.
 int getJoyIndex()
          The joystick index.
 boolean isPressed()
          Returns true if the event was a button press, returns false if the event was a button release.
 
クラス com.jme3.input.event.InputEvent から継承されたメソッド
getTime, isConsumed, setConsumed, setTime
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JoyButtonEvent

public JoyButtonEvent(int joyIdx,
                      int btnIdx,
                      boolean pressed)
メソッドの詳細

getButtonIndex

public int getButtonIndex()
The button index.

戻り値:
button index.
関連項目:
Joystick.assignButton(java.lang.String, int)

getJoyIndex

public int getJoyIndex()
The joystick index.

戻り値:
joystick index.
関連項目:
InputManager#getJoysticks()

isPressed

public boolean isPressed()
Returns true if the event was a button press, returns false if the event was a button release.

戻り値:
true if the event was a button press, false if the event was a button release.