From 068ee238a328ddaa96b5416b648035219477458d Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 2 May 2011 18:48:14 +0000 Subject: [PATCH] - fix NiftyJmeDisplay in jMP git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7394 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java | 4 ++++ .../src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java b/engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java index df2cd6494..5e69be868 100644 --- a/engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java +++ b/engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java @@ -79,6 +79,10 @@ public class NiftyJmeDisplay implements SceneProcessor { } } + //Empty constructor needed for jMP to create replacement input system + public NiftyJmeDisplay() { + } + public NiftyJmeDisplay(AssetManager assetManager, InputManager inputManager, AudioRenderer audioRenderer, diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java index e624bbe98..6d43d3b1a 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java @@ -46,6 +46,7 @@ import com.jme3.renderer.queue.RenderQueue; import com.jme3.texture.FrameBuffer; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.spi.input.InputSystem; +import de.lessvoid.nifty.tools.TimeProvider; public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implements SceneProcessor { @@ -62,7 +63,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement soundDev = new SoundDeviceJme(assetManager, audioRenderer); renderDev = new RenderDeviceJme(this); - nifty = new Nifty(renderDev, soundDev, inputManager, this); + nifty = new Nifty(renderDev, soundDev, inputManager, new TimeProvider()); } @Override