congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
KeyInput.update
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jMonkeyEngine/jmonkeyengine

/**
 * Updates the <code>InputManager</code>.
 * This will query current input devices and send
 * appropriate events to registered listeners.
 *
 * @param tpf Time per frame value.
 */
public void update(float tpf) {
  frameTPF = tpf;
  // Activate safemode if the TPF value is so small
  // that rounding errors are inevitable
  safeMode = tpf < 0.015f;
  long currentTime = keys.getInputTimeNanos();
  frameDelta = currentTime - lastUpdateTime;
  eventsPermitted = true;
  keys.update();
  mouse.update();
  if (joystick != null) {
    joystick.update();
  }
  if (touch != null) {
    touch.update();
  }
  eventsPermitted = false;
  processQueue();
  invokeUpdateActions();
  lastLastUpdateTime = lastUpdateTime;
  lastUpdateTime = currentTime;
}
origin: org.jmonkeyengine/jme3-core

/**
 * Updates the <code>InputManager</code>.
 * This will query current input devices and send
 * appropriate events to registered listeners.
 *
 * @param tpf Time per frame value.
 */
public void update(float tpf) {
  frameTPF = tpf;
  // Activate safemode if the TPF value is so small
  // that rounding errors are inevitable
  safeMode = tpf < 0.015f;
  long currentTime = keys.getInputTimeNanos();
  frameDelta = currentTime - lastUpdateTime;
  eventsPermitted = true;
  keys.update();
  mouse.update();
  if (joystick != null) {
    joystick.update();
  }
  if (touch != null) {
    touch.update();
  }
  eventsPermitted = false;
  processQueue();
  invokeUpdateActions();
  lastLastUpdateTime = lastUpdateTime;
  lastUpdateTime = currentTime;
}
origin: info.projectkyoto/mms-engine

keys.update();
mouse.update();
if (joystick != null) {
com.jme3.inputKeyInputupdate

Popular methods of KeyInput

  • initialize
  • destroy
  • getInputTimeNanos
  • setInputListener

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now