Package com.jme3.input.controls
Class TouchTrigger
java.lang.Object
com.jme3.input.controls.TouchTrigger
- All Implemented Interfaces:
Trigger
Class to trigger TouchEvents, keycode can be TouchInput.ALL(=0) or TouchInput.KEYCODE_*
-
Constructor Details
-
TouchTrigger
public TouchTrigger(int keyCode) Constructor- Parameters:
keyCode
- can be zero to get all events or TouchInput.KEYCODE_*
-
-
Method Details
-
getName
-
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 interfaceTrigger
- Returns:
- the hash code for the trigger.
-
getKeyCode
public int getKeyCode()
-