Tabnine Logo
IntSet.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.badlogic.gdx.utils.IntSet

Best Java code snippets using com.badlogic.gdx.utils.IntSet.add (Showing top 16 results out of 315)

origin: libgdx/libgdx

public void addAll (int[] array, int offset, int length) {
  ensureCapacity(length);
  for (int i = offset, n = i + length; i < n; i++)
    add(array[i]);
}
origin: libgdx/libgdx

public void addAll (int[] array, int offset, int length) {
  ensureCapacity(length);
  for (int i = offset, n = i + length; i < n; i++)
    add(array[i]);
}
origin: libgdx/libgdx

@Override
public void mousePressed (MouseEvent e) {
  synchronized (this) {
    TouchEvent event = usedTouchEvents.obtain();
    event.pointer = 0;
    event.x = e.getX();
    event.y = e.getY();
    event.type = TouchEvent.TOUCH_DOWN;
    event.button = toGdxButton(e.getButton());
    event.timeStamp = System.nanoTime();
    touchEvents.add(event);
    deltaX = event.x - touchX;
    deltaY = event.y - touchY;
    touchX = event.x;
    touchY = event.y;
    touchDown = true;
    pressedButtons.add(event.button);
    lwjglAwtCanvas.graphics.requestRendering();
  }
}
origin: libgdx/libgdx

@Override
public void mousePressed (MouseEvent e) {
  synchronized (this) {
    TouchEvent event = usedTouchEvents.obtain();
    event.pointer = 0;
    event.x = e.getX();
    event.y = e.getY();
    event.type = TouchEvent.TOUCH_DOWN;
    event.button = toGdxButton(e.getButton());
    event.timeStamp = System.nanoTime();
    touchEvents.add(event);
    deltaX = event.x - touchX;
    deltaY = event.y - touchY;
    touchX = event.x;
    touchY = event.y;
    touchDown = true;
    pressedButtons.add(event.button);
    lwjglAwtCanvas.graphics.requestRendering();
  }
}
origin: libgdx/libgdx

public void addAll (IntSet set) {
  ensureCapacity(set.size);
  IntSetIterator iterator = set.iterator();
  while (iterator.hasNext)
    add(iterator.next());
}
origin: libgdx/libgdx

public void addAll (IntSet set) {
  ensureCapacity(set.size);
  IntSetIterator iterator = set.iterator();
  while (iterator.hasNext)
    add(iterator.next());
}
origin: libgdx/libgdx

  pressedButtons.add(event.button);
  justTouched = true;
} else {
origin: libgdx/libgdx

  pressedButtons.add(event.button);
  justTouched = true;
} else {
origin: libgdx/libgdx

this.justTouched = true;
this.touched[0] = true;
this.pressedButtons.add(getButton(e.getButton()));
this.deltaX[0] = 0;
this.deltaY[0] = 0;
      pressedKeySet.add(code);
      pressedKeyCount++;
      pressedKeys[code] = true;
origin: libgdx/libgdx

this.justTouched = true;
this.touched[0] = true;
this.pressedButtons.add(getButton(e.getButton()));
this.deltaX[0] = 0;
this.deltaY[0] = 0;
      pressedKeySet.add(code);
      pressedKeyCount++;
      pressedKeys[code] = true;
origin: com.badlogicgames.gdx/gdx

public void addAll (int[] array, int offset, int length) {
  ensureCapacity(length);
  for (int i = offset, n = i + length; i < n; i++)
    add(array[i]);
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public void mousePressed (MouseEvent e) {
  synchronized (this) {
    TouchEvent event = usedTouchEvents.obtain();
    event.pointer = 0;
    event.x = e.getX();
    event.y = e.getY();
    event.type = TouchEvent.TOUCH_DOWN;
    event.button = toGdxButton(e.getButton());
    event.timeStamp = System.nanoTime();
    touchEvents.add(event);
    deltaX = event.x - touchX;
    deltaY = event.y - touchY;
    touchX = event.x;
    touchY = event.y;
    touchDown = true;
    pressedButtons.add(event.button);
    lwjglAwtCanvas.graphics.requestRendering();
  }
}
origin: com.badlogicgames.gdx/gdx

public void addAll (IntSet set) {
  ensureCapacity(set.size);
  IntSetIterator iterator = set.iterator();
  while (iterator.hasNext)
    add(iterator.next());
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

  pressedButtons.add(event.button);
  justTouched = true;
} else {
origin: konsoletyper/teavm-libgdx

this.justTouched = true;
this.touched[0] = true;
this.pressedButtons.add(getButton(mouseEvent.getButton()));
this.deltaX[0] = 0;
this.deltaY[0] = 0;
origin: com.badlogicgames.gdx/gdx-backend-gwt

this.justTouched = true;
this.touched[0] = true;
this.pressedButtons.add(getButton(e.getButton()));
this.deltaX[0] = 0;
this.deltaY[0] = 0;
      pressedKeySet.add(code);
      pressedKeyCount++;
      pressedKeys[code] = true;
com.badlogic.gdx.utilsIntSetadd

Javadoc

Returns true if the key was not already in the set.

Popular methods of IntSet

  • contains
  • iterator
    Returns an iterator for the keys in the set. Remove is supported. Note that the same iterator instan
  • remove
    Returns true if the key was removed.
  • <init>
    Creates a new set identical to the specified set.
  • addAll
  • addResize
    Skips checks for existing keys.
  • addStash
  • clear
    Clears the set and reduces the size of the backing arrays to be the specified capacity if they are l
  • containsKeyStash
  • ensureCapacity
    Increases the size of the backing array to accommodate the specified number of additional items. Use
  • hash2
  • hash3
  • hash2,
  • hash3,
  • push,
  • removeStash,
  • removeStashIndex,
  • resize

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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