public void update(long fps) {
        if (paddleMoving == LEFT) {
            // to fix Paddle going off the Screen
            if (x >= -MYscreenDPI / 10)
                // Decrement position
                x = x - paddleSpeed / fps;
        }
        if (paddleMoving == RIGHT) {
            // to fix Paddle going off the Screen
            if (x <= scrX - length - MYscreenDPI / 14)
                // Increment position
                x = x + paddleSpeed / fps;
        }
        // Apply the New position
        rect.left = x;
        rect.right = x + length;
    }
public void update(long fps) {
        if (paddleMoving == LEFT) {
           
            if (x >= -MYscreenDPI / 10)
               
                x = x - paddleSpeed / fps;
        }
        if (paddleMoving == RIGHT) {
           
            if (x <= scrX - length - MYscreenDPI / 14)
               
                x = x + paddleSpeed / fps;
        }
       
        rect.left = x;
        rect.right = x + length;
    }
public void update(long fps) { if (paddlemoving == left) { if (x >= -myscreendpi / 10) x = x - paddlespeed / fps; } if (paddlemoving == right) { if (x <= scrx - length - myscreendpi / 14) x = x + paddlespeed / fps; } rect.left = x; rect.right = x + length; }