Codota Logo
KeyInput.setInputListener
Code IndexAdd Codota to your IDE (free)

How to use
setInputListener
method
in
com.jme3.input.KeyInput

Best Java code snippets using com.jme3.input.KeyInput.setInputListener (Showing top 3 results out of 315)

  • Common ways to obtain KeyInput
private void myMethod () {
KeyInput k =
  • Codota Iconnew DummyKeyInput()
  • Codota IconJmeContext jmeContext;jmeContext.getKeyInput()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Initializes the InputManager.
 *
 * <p>This should only be called internally in {@link Application}.
 *
 * @param mouse
 * @param keys
 * @param joystick
 * @param touch
 * @throws IllegalArgumentException If either mouseInput or keyInput are null.
 */
public InputManager(MouseInput mouse, KeyInput keys, JoyInput joystick, TouchInput touch) {
  if (keys == null || mouse == null) {
    throw new IllegalArgumentException("Mouse or keyboard cannot be null");
  }
  this.keys = keys;
  this.mouse = mouse;
  this.joystick = joystick;
  this.touch = touch;
  keys.setInputListener(this);
  mouse.setInputListener(this);
  if (joystick != null) {
    joystick.setInputListener(this);
    joysticks = joystick.loadJoysticks(this);
  }
  if (touch != null) {
    touch.setInputListener(this);
  }
  firstTime = keys.getInputTimeNanos();
}
origin: info.projectkyoto/mms-engine

/**
 * Initializes the InputManager.
 * 
 * <p>This should only be called internally in {@link Application}.
 *
 * @param mouseInput
 * @param keyInput
 * @param joyInput
 * @throws IllegalArgumentException If either mouseInput or keyInput are null.
 */
public InputManager(MouseInput mouse, KeyInput keys, JoyInput joystick, TouchInput touch) {
  if (keys == null || mouse == null) {
    throw new NullPointerException("Mouse or keyboard cannot be null");
  }
  this.keys = keys;
  this.mouse = mouse;
  this.joystick = joystick;
  this.touch = touch;
  keys.setInputListener(this);
  mouse.setInputListener(this);
  if (joystick != null) {
    joystick.setInputListener(this);
    joysticks = joystick.loadJoysticks(this);
  }
  if (touch != null) {
    touch.setInputListener(this);
  }
  firstTime = keys.getInputTimeNanos();
}
origin: org.jmonkeyengine/jme3-core

/**
 * Initializes the InputManager.
 *
 * <p>This should only be called internally in {@link Application}.
 *
 * @param mouse
 * @param keys
 * @param joystick
 * @param touch
 * @throws IllegalArgumentException If either mouseInput or keyInput are null.
 */
public InputManager(MouseInput mouse, KeyInput keys, JoyInput joystick, TouchInput touch) {
  if (keys == null || mouse == null) {
    throw new IllegalArgumentException("Mouse or keyboard cannot be null");
  }
  this.keys = keys;
  this.mouse = mouse;
  this.joystick = joystick;
  this.touch = touch;
  keys.setInputListener(this);
  mouse.setInputListener(this);
  if (joystick != null) {
    joystick.setInputListener(this);
    joysticks = joystick.loadJoysticks(this);
  }
  if (touch != null) {
    touch.setInputListener(this);
  }
  firstTime = keys.getInputTimeNanos();
}
com.jme3.inputKeyInputsetInputListener

Popular methods of KeyInput

  • initialize
  • destroy
  • getInputTimeNanos
  • update

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now