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

  • Finding current android device location
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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