com.jme3.input
インタフェース MouseInput

すべてのスーパーインタフェース:
Input
既知の実装クラスの一覧:
DummyMouseInput

public interface MouseInput
extends Input

A specific API for interfacing with the mouse.


フィールドの概要
static int AXIS_WHEEL
          Mouse wheel axis.
static int AXIS_X
          Mouse X axis.
static int AXIS_Y
          Mouse Y axis.
static int BUTTON_LEFT
          Left mouse button.
static int BUTTON_MIDDLE
          Middle mouse button.
static int BUTTON_RIGHT
          Right mouse button.
 
メソッドの概要
 int getButtonCount()
          Returns the number of buttons the mouse has.
 void setCursorVisible(boolean visible)
          Set whether the mouse cursor should be visible or not.
 
インタフェース com.jme3.input.Input から継承されたメソッド
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update
 

フィールドの詳細

AXIS_X

static final int AXIS_X
Mouse X axis.

関連項目:
定数フィールド値

AXIS_Y

static final int AXIS_Y
Mouse Y axis.

関連項目:
定数フィールド値

AXIS_WHEEL

static final int AXIS_WHEEL
Mouse wheel axis.

関連項目:
定数フィールド値

BUTTON_LEFT

static final int BUTTON_LEFT
Left mouse button.

関連項目:
定数フィールド値

BUTTON_RIGHT

static final int BUTTON_RIGHT
Right mouse button.

関連項目:
定数フィールド値

BUTTON_MIDDLE

static final int BUTTON_MIDDLE
Middle mouse button.

関連項目:
定数フィールド値
メソッドの詳細

setCursorVisible

void setCursorVisible(boolean visible)
Set whether the mouse cursor should be visible or not.

パラメータ:
visible - Whether the mouse cursor should be visible or not.

getButtonCount

int getButtonCount()
Returns the number of buttons the mouse has. Typically 3 for most mice.

戻り値:
the number of buttons the mouse has.