setKeyBindings();
addActions();
}
protected void setKeyBindings() {
KeyBindingManager keyboard = KeyBindingManager.getKeyBindingManager();
// Orbit is made out of 2 main movement types:
// Pan&Tilt X/Y
keyboard.set("tiltForward", KeyInput.KEY_UP);
keyboard.set("tiltBack", KeyInput.KEY_DOWN);
keyboard.set("turnLeft", KeyInput.KEY_LEFT);
keyboard.set("turnRight", KeyInput.KEY_RIGHT);
// Zooming Z
keyboard.set("zoomIn", KeyInput.KEY_PGUP);
keyboard.set("zoomOut", KeyInput.KEY_PGDN);
// Translate X/Y/Z
keyboard.set("translateLeft", KeyInput.KEY_A);
keyboard.set("translateRight", KeyInput.KEY_D);
keyboard.set("translateForward", KeyInput.KEY_W);
keyboard.set("translateBackward", KeyInput.KEY_S);
keyboard.set("translateUp", KeyInput.KEY_Q);
keyboard.set("translateDown", KeyInput.KEY_Z);
}