diff options
author | Julien Gouesse <[email protected]> | 2019-05-27 10:25:15 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2019-05-27 10:25:15 +0200 |
commit | 7cdd22da5f1388f595c2207603f80854f9d471db (patch) | |
tree | 1b3c701462abbb368c71ad28f0c2e466485f7486 /ardor3d-jogl/src/main/java | |
parent | 0a70b1f3eceadb203c5182334378d95921915f5b (diff) |
Fixes a bug introduced while fixing the issue #13: the keyboard input was no longer working when using JOGL with NEWT
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java index 391e775..eff8471 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKeyboardWrapper.java @@ -11,7 +11,6 @@ package com.ardor3d.input.jogl; import java.util.EnumSet; -import java.util.LinkedList; import java.util.Objects; import com.ardor3d.annotation.GuardedBy; @@ -30,9 +29,6 @@ import com.jogamp.newt.opengl.GLWindow; public class JoglNewtKeyboardWrapper extends KeyAdapter implements KeyboardWrapper { @GuardedBy("this") - protected final LinkedList<KeyEvent> _upcomingEvents = new LinkedList<>(); - - @GuardedBy("this") protected KeyboardIterator _currentIterator = null; protected final GLWindow _newtWindow; @@ -53,7 +49,8 @@ public class JoglNewtKeyboardWrapper extends KeyAdapter implements KeyboardWrapp _newtWindow.addKeyListener(this); _newtWindow.addWindowListener(new WindowAdapter() { @Override - public void windowLostFocus(final WindowEvent e) {} + public void windowLostFocus(final WindowEvent e) { + } @Override public void windowGainedFocus(final WindowEvent e) { |