congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
InputEventQueue.next
Code IndexAdd Tabnine to your IDE (free)

How to use
next
method
in
com.badlogic.gdx.InputEventQueue

Best Java code snippets using com.badlogic.gdx.InputEventQueue.next (Showing top 6 results out of 315)

origin: libgdx/libgdx

public synchronized boolean mouseMoved (int screenX, int screenY) {
  // Skip any queued mouse moved events.
  for (int i = next(MOUSE_MOVED, 0); i >= 0; i = next(MOUSE_MOVED, i + 5)) {
    queue.set(i, SKIP);
    queue.set(i + 3, 2);
  }
  queue.add(MOUSE_MOVED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  return false;
}
origin: libgdx/libgdx

public synchronized boolean mouseMoved (int screenX, int screenY) {
  // Skip any queued mouse moved events.
  for (int i = next(MOUSE_MOVED, 0); i >= 0; i = next(MOUSE_MOVED, i + 5)) {
    queue.set(i, SKIP);
    queue.set(i + 3, 2);
  }
  queue.add(MOUSE_MOVED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  return false;
}
origin: libgdx/libgdx

public synchronized boolean touchDragged (int screenX, int screenY, int pointer) {
  // Skip any queued touch dragged events for the same pointer.
  for (int i = next(TOUCH_DRAGGED, 0); i >= 0; i = next(TOUCH_DRAGGED, i + 6)) {
    if (queue.get(i + 5) == pointer) {
      queue.set(i, SKIP);
      queue.set(i + 3, 3);
    }
  }
  queue.add(TOUCH_DRAGGED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  queue.add(pointer);
  return false;
}
origin: libgdx/libgdx

public synchronized boolean touchDragged (int screenX, int screenY, int pointer) {
  // Skip any queued touch dragged events for the same pointer.
  for (int i = next(TOUCH_DRAGGED, 0); i >= 0; i = next(TOUCH_DRAGGED, i + 6)) {
    if (queue.get(i + 5) == pointer) {
      queue.set(i, SKIP);
      queue.set(i + 3, 3);
    }
  }
  queue.add(TOUCH_DRAGGED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  queue.add(pointer);
  return false;
}
origin: com.badlogicgames.gdx/gdx

public synchronized boolean mouseMoved (int screenX, int screenY) {
  // Skip any queued mouse moved events.
  for (int i = next(MOUSE_MOVED, 0); i >= 0; i = next(MOUSE_MOVED, i + 5)) {
    queue.set(i, SKIP);
    queue.set(i + 3, 2);
  }
  queue.add(MOUSE_MOVED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  return false;
}
origin: com.badlogicgames.gdx/gdx

public synchronized boolean touchDragged (int screenX, int screenY, int pointer) {
  // Skip any queued touch dragged events for the same pointer.
  for (int i = next(TOUCH_DRAGGED, 0); i >= 0; i = next(TOUCH_DRAGGED, i + 6)) {
    if (queue.get(i + 5) == pointer) {
      queue.set(i, SKIP);
      queue.set(i + 3, 3);
    }
  }
  queue.add(TOUCH_DRAGGED);
  queueTime();
  queue.add(screenX);
  queue.add(screenY);
  queue.add(pointer);
  return false;
}
com.badlogic.gdxInputEventQueuenext

Popular methods of InputEventQueue

  • drain
  • getCurrentEventTime
  • keyDown
  • keyTyped
  • keyUp
  • mouseMoved
  • queueTime
  • scrolled
  • setProcessor
  • touchDown
  • touchDragged
  • touchUp
  • touchDragged,
  • touchUp,
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 Free Sublime Text Plugins
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