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

すべてのスーパーインタフェース:
Input

public interface JoyInput
extends Input

A specific API for interfacing with joysticks or gaming controllers.


フィールドの概要
static int AXIS_POV_X
          The X axis for POV (point of view hat).
static int AXIS_POV_Y
          The Y axis for POV (point of view hat).
 
メソッドの概要
 Joystick[] loadJoysticks(InputManager inputManager)
          Loads a list of joysticks from the system.
 void setJoyRumble(int joyId, float amount)
          Causes the joystick at joyId index to rumble with the given amount.
 
インタフェース com.jme3.input.Input から継承されたメソッド
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update
 

フィールドの詳細

AXIS_POV_X

static final int AXIS_POV_X
The X axis for POV (point of view hat).

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

AXIS_POV_Y

static final int AXIS_POV_Y
The Y axis for POV (point of view hat).

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

setJoyRumble

void setJoyRumble(int joyId,
                  float amount)
Causes the joystick at joyId index to rumble with the given amount.

パラメータ:
joyId - The joystick index
amount - Rumble amount. Should be between 0 and 1.

loadJoysticks

Joystick[] loadJoysticks(InputManager inputManager)
Loads a list of joysticks from the system.

パラメータ:
inputManager - The input manager requesting to load joysticks
戻り値:
A list of joysticks that are installed.