// Increment position
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;
    }
// to fix Paddle going off the Screen
if (x <= scrX - length - MYscreenDPI / 14)
// Increment position
x = x + paddleSpeed / fps;
}
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) {
// 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;
}