/** * Update the core input system - mouse, keyboard and joystick. Thus all events are handled within * this method call.<br> * To disable joystick support call {@link JoystickInput#setProvider(String)} with {@link * #INPUT_SYSTEM_DUMMY} as parameter proir to creating the display. * * @see KeyInput#update() * @see MouseInput#update() * @see JoystickInput#update() */ public static void update() { MouseInput.get().update(); KeyInput.get().update(); JoystickInput.get().update(); }
public void performAction(InputActionEvent evt) { localTranslation.x = MouseInput.get().getXDelta() * _speed; localTranslation.y = MouseInput.get().getYDelta() * _speed; worldTranslation.set(localTranslation); hotSpotLocation.set(localTranslation).addLocal(hotSpotOffset); }