com.jme3.input.controls
Class JoyAxisTrigger

java.lang.Object
  extended by com.jme3.input.controls.JoyAxisTrigger
All Implemented Interfaces:
Trigger

public class JoyAxisTrigger
extends java.lang.Object
implements Trigger


Constructor Summary
JoyAxisTrigger(int joyId, int axisId, boolean negative)
          Use Joystick.assignAxis(java.lang.String, java.lang.String, int) instead.
 
Method Summary
 int getAxisId()
           
 int getJoyId()
           
 java.lang.String getName()
           
 boolean isNegative()
           
static int joyAxisHash(int joyId, int joyAxis, boolean negative)
           
 int triggerHashCode()
          Returns the hash code for the trigger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoyAxisTrigger

public JoyAxisTrigger(int joyId,
                      int axisId,
                      boolean negative)
Use Joystick.assignAxis(java.lang.String, java.lang.String, int) instead.

Method Detail

joyAxisHash

public static int joyAxisHash(int joyId,
                              int joyAxis,
                              boolean negative)

getAxisId

public int getAxisId()

getJoyId

public int getJoyId()

isNegative

public boolean isNegative()

getName

public java.lang.String getName()
Specified by:
getName in interface Trigger
Returns:
A user friendly name for the trigger.

triggerHashCode

public int triggerHashCode()
Description copied from interface: Trigger
Returns the hash code for the trigger.

Specified by:
triggerHashCode in interface Trigger
Returns:
the hash code for the trigger.