com.jme3.input.event
クラス MouseButtonEvent

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

public class MouseButtonEvent
extends InputEvent

Mouse button press/release event.


コンストラクタの概要
MouseButtonEvent(int btnIndex, boolean pressed, int x, int y)
           
 
メソッドの概要
 int getButtonIndex()
          Returns the mouse button index.
 int getX()
          The X coordinate of the mouse when the event was generated.
 int getY()
          The Y coordinate of the mouse when the event was generated.
 boolean isPressed()
          Returns true if the mouse button was pressed, false if it was released.
 boolean isReleased()
          Returns true if the mouse button was released, false if it was pressed.
 java.lang.String toString()
           
 
クラス com.jme3.input.event.InputEvent から継承されたメソッド
getTime, isConsumed, setConsumed, setTime
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

MouseButtonEvent

public MouseButtonEvent(int btnIndex,
                        boolean pressed,
                        int x,
                        int y)
メソッドの詳細

getButtonIndex

public int getButtonIndex()
Returns the mouse button index.

See constants in MouseInput.

戻り値:
the mouse button index.

isPressed

public boolean isPressed()
Returns true if the mouse button was pressed, false if it was released.

戻り値:
true if the mouse button was pressed, false if it was released.

isReleased

public boolean isReleased()
Returns true if the mouse button was released, false if it was pressed.

戻り値:
true if the mouse button was released, false if it was pressed.

getX

public int getX()
The X coordinate of the mouse when the event was generated.

戻り値:
X coordinate of the mouse when the event was generated.

getY

public int getY()
The Y coordinate of the mouse when the event was generated.

戻り値:
Y coordinate of the mouse when the event was generated.

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString