* the player input
*/
private void handleScrollUpdate(Input input) {
final int mouseX = input.getMouseX();
final int mouseY = input.getMouseY();
Colony c = GameData.getSelectedColony();
// Vertical scroll
if (this.topScrollZone.contains(mouseX, mouseY)) {
c.setViewportY(c.getViewportY() + Settings.MAP_SCROLL_SPEED);
} else if (this.bottomScrollZone.contains(mouseX, mouseY)) {
c.setViewportY(c.getViewportY() - Settings.MAP_SCROLL_SPEED);
}
// Horizontal scroll
if (this.leftScrollZone.contains(mouseX, mouseY)) {
c.setViewportX(c.getViewportX() + Settings.MAP_SCROLL_SPEED);
} else if (this.rightScrollZone.contains(mouseX, mouseY)) {
c.setViewportX(c.getViewportX() - Settings.MAP_SCROLL_SPEED);
}
}