Fixes BPP in JoglNewtAbstractDisplay
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9943 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
66ddbb654d
commit
c9c1ae1cae
@ -35,6 +35,8 @@ package com.jme3.system.jogl;
|
|||||||
import com.jme3.input.KeyInput;
|
import com.jme3.input.KeyInput;
|
||||||
import com.jme3.input.MouseInput;
|
import com.jme3.input.MouseInput;
|
||||||
import com.jme3.input.TouchInput;
|
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.jme3.renderer.jogl.JoglRenderer;
|
||||||
import com.jogamp.newt.opengl.GLWindow;
|
import com.jogamp.newt.opengl.GLWindow;
|
||||||
import com.jogamp.opengl.util.Animator;
|
import com.jogamp.opengl.util.Animator;
|
||||||
@ -138,14 +140,20 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public KeyInput getKeyInput() {
|
public KeyInput getKeyInput() {
|
||||||
//TODO
|
if (keyInput == null) {
|
||||||
return null;
|
keyInput = new NewtKeyInput();
|
||||||
|
((NewtKeyInput)keyInput).setInputSource(canvas);
|
||||||
|
}
|
||||||
|
return keyInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MouseInput getMouseInput() {
|
public MouseInput getMouseInput() {
|
||||||
//TODO
|
if (mouseInput == null) {
|
||||||
return null;
|
mouseInput = new NewtMouseInput();
|
||||||
|
((NewtMouseInput)mouseInput).setInputSource(canvas);
|
||||||
|
}
|
||||||
|
return mouseInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TouchInput getTouchInput() {
|
public TouchInput getTouchInput() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user