Fixes BPP in JoglNewtAbstractDisplay

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9943 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
jul..om 12 years ago
parent 66ddbb654d
commit c9c1ae1cae
  1. 16
      engine/src/jogl/com/jme3/system/jogl/JoglNewtAbstractDisplay.java

@ -35,6 +35,8 @@ package com.jme3.system.jogl;
import com.jme3.input.KeyInput;
import com.jme3.input.MouseInput;
import com.jme3.input.TouchInput;
import com.jme3.input.jogl.NewtKeyInput;
import com.jme3.input.jogl.NewtMouseInput;
import com.jme3.renderer.jogl.JoglRenderer;
import com.jogamp.newt.opengl.GLWindow;
import com.jogamp.opengl.util.Animator;
@ -138,14 +140,20 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
@Override
public KeyInput getKeyInput() {
//TODO
return null;
if (keyInput == null) {
keyInput = new NewtKeyInput();
((NewtKeyInput)keyInput).setInputSource(canvas);
}
return keyInput;
}
@Override
public MouseInput getMouseInput() {
//TODO
return null;
if (mouseInput == null) {
mouseInput = new NewtMouseInput();
((NewtMouseInput)mouseInput).setInputSource(canvas);
}
return mouseInput;
}
public TouchInput getTouchInput() {

Loading…
Cancel
Save