com.jme3.input.controls
Class TouchTrigger

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

public class TouchTrigger
extends java.lang.Object
implements Trigger

Class to trigger TouchEvents, keycode can be TouchInput.ALL(=0) or TouchInput.KEYCODE_*


Constructor Summary
TouchTrigger(int keyCode)
          Constructor
 
Method Summary
 int getKeyCode()
           
 java.lang.String getName()
           
static int touchHash(int keyCode)
           
 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

TouchTrigger

public TouchTrigger(int keyCode)
Constructor

Parameters:
keyCode - can be zero to get all events or TouchInput.KEYCODE_*
Method Detail

getName

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

touchHash

public static int touchHash(int keyCode)

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.

getKeyCode

public int getKeyCode()