Home
last modified time | relevance | path

Searched refs:deltaX (Results 1 – 25 of 39) sorted by relevance

12

/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
DDragListener.java32 private float deltaX, deltaY; field in DragListener
50 deltaX = x; in touchDragged()
54 deltaX -= x; in touchDragged()
57 deltaX = x; in touchDragged()
115 return deltaX; in getDeltaX()
DActorGestureListener.java66 public boolean pan (float stageX, float stageY, float deltaX, float deltaY) { in ActorGestureListener()
67 stageToLocalAmount(tmpCoords.set(deltaX, deltaY)); in ActorGestureListener()
68 deltaX = tmpCoords.x; in ActorGestureListener()
71 ActorGestureListener.this.pan(event, tmpCoords.x, tmpCoords.y, deltaX, deltaY); in ActorGestureListener()
145 public void pan (InputEvent event, float x, float y, float deltaX, float deltaY) { in pan() argument
/external/libvncserver/webclients/novnc/include/
Ddisplay.js113 viewportChange: function (deltaX, deltaY, width, height) { argument
120 deltaX = -vp.w; // clamped later of out of bounds
126 if (typeof(deltaX) === "undefined") { deltaX = 0; }
168 if (deltaX < 0 && vp.x + deltaX < 0) {
169 deltaX = -vp.x;
171 if (vx2 + deltaX >= this._fb_width) {
172 deltaX -= vx2 + deltaX - this._fb_width + 1;
182 if (deltaX === 0 && deltaY === 0) {
185 Util.Debug("viewportChange deltaX: " + deltaX + ", deltaY: " + deltaY);
187 vp.x += deltaX;
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DCollisionSystem.java279 final int deltaX, final int deltaY, in executeStraigtRay() argument
289 if (deltaX != 0) { in executeStraigtRay()
290 distance = Math.abs(deltaX) + 1; in executeStraigtRay()
291 xIncrement = Utils.sign(deltaX); in executeStraigtRay()
345 final int deltaX = endTileX - startTileX; in executeRay() local
350 if (deltaX == 0 || deltaY == 0) { in executeRay()
352 endTileX, endTileY, deltaX, deltaY, hitPoint, hitNormal, visitor); in executeRay()
355 final int xIncrement = deltaX != 0 ? Utils.sign(deltaX) : 0; in executeRay()
360 …teralDelta = (endTileX > 0 && endTileX < worldWidth - 1) ? Math.abs(deltaX) + 1 : Math.abs(deltaX); in executeRay()
746 final float deltaX = x2 - x1; in calculateIntersectionBox() local
[all …]
DSphereCollisionVolume.java105 final float deltaX = other.getMaxXPosition(otherFlip) in intersects() local
109 final float centerX = deltaX / 2.0f; in intersects()
115 otherRadius = Math.max(deltaX, deltaY); in intersects()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DCameraInputController.java103 public boolean pan (float x, float y, float deltaX, float deltaY) { in pan() argument
177 protected boolean process (float deltaX, float deltaY, int button) { in process() argument
181 camera.rotateAround(target, Vector3.Y, deltaX * -rotateAngle); in process()
183 camera.translate(tmpV1.set(camera.direction).crs(camera.up).nor().scl(-deltaX * translateUnits)); in process()
198 final float deltaX = (screenX - startX) / Gdx.graphics.getWidth(); in touchDragged() local
202 return process(deltaX, deltaY, button); in touchDragged()
DFirstPersonCameraController.java71 float deltaX = -Gdx.input.getDeltaX() * degreesPerPixel; in touchDragged() local
73 camera.direction.rotate(camera.up, deltaX); in touchDragged()
/external/jmonkeyengine/engine/src/core/com/jme3/input/event/
DTouchEvent.java96 private float deltaX; field in TouchEvent
123 this.deltaX = deltax; in set()
152 return deltaX; in getDeltaX()
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
DAndroidMouseHandler.java32 private int deltaX = 0; field in AndroidMouseHandler
49 if ((x != deltaX) || (y != deltaY)) { // Avoid garbage events in onGenericMotion()
51 deltaX = x; in onGenericMotion()
DAndroidMultiTouchHandler.java54 input.deltaX[realPointerIndex] = 0; in onTouch()
74 input.deltaX[realPointerIndex] = 0; in onTouch()
95 input.deltaX[realPointerIndex] = x - input.touchX[realPointerIndex]; in onTouch()
DAndroidInput.java106 int[] deltaX = new int[NUM_TOUCHES]; field in AndroidInput
407 for (int i = 0; i < deltaX.length; i++) { in processEvents()
408 deltaX[0] = 0; in processEvents()
772 deltaX = resize(deltaX); in getFreePointerIndex()
846 return deltaX[0]; in getDeltaX()
851 return deltaX[pointer]; in getDeltaX()
/external/libgdx/gdx/src/com/badlogic/gdx/input/
DGestureDetector.java159 return listener.pan(x, y, tracker.deltaX, tracker.deltaY); in touchDragged()
305 public boolean pan (float x, float y, float deltaX, float deltaY); in pan() argument
352 public boolean pan (float x, float y, float deltaX, float deltaY) { in pan() argument
379 float deltaX, deltaY; field in GestureDetector.VelocityTracker
389 deltaX = 0; in start()
402 deltaX = x - lastX; in update()
409 meanX[index] = deltaX; in update()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/
DGwtInput.java46 private int[] deltaX = new int[MAX_TOUCHES]; field in GwtInput
120 return deltaX[0]; in getDeltaX()
125 return deltaX[pointer]; in getDeltaX()
514 this.deltaX[0] = 0; in handleEvent()
529 this.deltaX[0] = (int)getMovementXJSNI(e); in handleEvent()
534 this.deltaX[0] = getRelativeX(e, canvas) - touchX[0]; in handleEvent()
553 this.deltaX[0] = (int)getMovementXJSNI(e); in handleEvent()
558 this.deltaX[0] = getRelativeX(e, canvas) - touchX[0]; in handleEvent()
625 deltaX[touchId] = 0; in handleEvent()
640 deltaX[touchId] = getRelativeX(touch, canvas) - touchX[touchId]; in handleEvent()
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/
DPyramid.java59 Vector2 deltaX = new Vector2(0.5625f, 1.25f); in createWorld() local
75 x.add(deltaX); in createWorld()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DScene2dTest.java124 public void pan (InputEvent event, float x, float y, float deltaX, float deltaY) { in create()
125 event.getListenerActor().moveBy(deltaX, deltaY); in create()
126 … if (deltaX < 0) System.out.println("panning " + deltaX + ", " + deltaY + " " + event.getTarget()); in create()
DGestureDetectorTest.java70 public boolean pan (float x, float y, float deltaX, float deltaY) { in pan() argument
72 camera.position.add(-deltaX * camera.zoom, deltaY * camera.zoom, 0); in pan()
DBulletTestCollection.java191 public boolean pan (float x, float y, float deltaX, float deltaY) { in pan() argument
192 return tests[testIndex].pan(x, y, deltaX, deltaY); in pan()
/external/libgdx/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/
DIOSInput.java87 int[] deltaX = new int[MAX_TOUCHES]; field in IOSInput
283 return deltaX[0]; in getDeltaX()
288 return deltaX[pointer]; in getDeltaX()
688 deltaX[event.pointer] = 0; in toTouchEvents()
695 deltaX[event.pointer] = event.x - touchX[event.pointer]; in toTouchEvents()
706 deltaX[event.pointer] = 0; in toTouchEvents()
/external/libgdx/backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/
DIOSInput.java58 int[] deltaX = new int[MAX_TOUCHES]; field in IOSInput
228 return deltaX[0]; in getDeltaX()
233 return deltaX[pointer]; in getDeltaX()
604 deltaX[event.pointer] = 0; in toTouchEvents()
611 deltaX[event.pointer] = event.x - touchX[event.pointer]; in toTouchEvents()
622 deltaX[event.pointer] = 0; in toTouchEvents()
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
DLwjglAWTInput.java107 int deltaX = 0; field in LwjglAWTInput
384 deltaX = 0; in processEvents()
429 deltaX = event.x - touchX; in mouseDragged()
449 deltaX = event.x - touchX; in mouseMoved()
505 deltaX = event.x - touchX; in mousePressed()
527 deltaX = event.x - touchX; in mouseReleased()
880 return deltaX; in getDeltaX()
885 if (pointer == 0) return deltaX; in getDeltaX()
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
DLwjgl3Input.java39 private int deltaX, deltaY; field in Lwjgl3Input
111 deltaX = (int)x - logicalMouseX;
119 deltaX = (int)(deltaX * xScale);
199 deltaX = 0; in update()
215 return deltaX; in getDeltaX()
220 return pointer == 0? deltaX: 0; in getDeltaX()
/external/libgdx/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/
DJglfwInput.java55 int deltaX, deltaY; field in JglfwInput
95 deltaX = screenX - mouseX; in JglfwInput()
104 deltaX = screenX - mouseX; in JglfwInput()
127 deltaX = 0; in update()
173 return deltaX; in getDeltaX()
177 return pointer > 0 ? 0 : deltaX; in getDeltaX()
/external/skia/src/views/mac/
DSkSampleNSView.mm22 CGFloat x = [event deltaX];
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/mac/
DCocoaMouse.mm225 CGPoint delta = CGPointMake([theEvent deltaX], [theEvent deltaY]);
274 CGPoint delta = CGPointMake([theEvent deltaX], [theEvent deltaY]);
323 CGPoint delta = CGPointMake([theEvent deltaX], [theEvent deltaY]);
345 CGPoint delta = CGPointMake([theEvent deltaX], [theEvent deltaY]);
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DBulletTest.java122 public boolean pan (float x, float y, float deltaX, float deltaY) { in pan() argument

12