Home | History | Annotate | Download | only in view

Lines Matching refs:movement

4332                 // It has been too long since the last movement,
4369 // Generate DPAD events based on the trackball movement.
4376 int movement = 0;
4379 movement = mX.generate();
4380 if (movement != 0) {
4381 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_RIGHT
4387 movement = mY.generate();
4388 if (movement != 0) {
4389 keycode = movement > 0 ? KeyEvent.KEYCODE_DPAD_DOWN
4397 if (movement < 0) movement = -movement;
4398 int accelMovement = (int)(movement * accel);
4399 if (DEBUG_TRACKBALL) Log.v(TAG, "Move: movement=" + movement
4402 if (accelMovement > movement) {
4405 movement--;
4406 int repeatCount = accelMovement - movement;
4412 while (movement > 0) {
4415 movement--;
4461 * much to multiple/divide the current acceleration. When movement
4487 * Add trackball movement into the state. If the direction of movement
4489 * movement (so that you don't have to compensate for any previously
4490 * collected movement before see the result of the movement in the
4493 * @return Returns the absolute value of the amount of movement
4522 // The number of milliseconds between each movement that is
4552 * Generate the number of discrete movement events appropriate for
4553 * the currently collected trackball movement.
4556 * or negative, or 0 if there is not enough trackball movement yet
4557 * for a discrete movement.
4560 int movement = 0;
4567 // a full movement, in order to make things look responsive.
4570 return movement;
4572 movement += dir;
4576 // If we have generated the first movement, then we need
4578 // generating the second discrete movement.
4581 return movement;
4583 movement += dir;
4593 // a longer increasing acceleration to continuous movement
4597 return movement;
4599 movement += dir;
4784 // The scaled tick distance. A movement of this amount should generally translate
4808 // Accumulated movement delta since the last direction key was sent.
4812 // Set to true if any movement was delivered to the app.
4927 // Consume any accumulated movement so far.