Class TouchTrigger

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

public class TouchTrigger extends Object implements 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

      public 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()