com.jme3.input.controls
Class JoyButtonTrigger

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

public class JoyButtonTrigger
extends java.lang.Object
implements Trigger


Constructor Summary
JoyButtonTrigger(int joyId, int axisId)
          Use Joystick.assignButton(java.lang.String, int) instead.
 
Method Summary
 int getAxisId()
           
 int getJoyId()
           
 java.lang.String getName()
           
static int joyButtonHash(int joyId, int joyButton)
           
 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

JoyButtonTrigger

public JoyButtonTrigger(int joyId,
                        int axisId)
Use Joystick.assignButton(java.lang.String, int) instead.

Parameters:
joyId -
axisId -
Method Detail

joyButtonHash

public static int joyButtonHash(int joyId,
                                int joyButton)

getAxisId

public int getAxisId()

getJoyId

public int getJoyId()

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.