aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2013-03-07 22:23:59 +0100
committerJulien Gouesse <[email protected]>2013-03-07 22:23:59 +0100
commitabd70fc8fe9de9fbd1e8d04c83f214ec0db51584 (patch)
tree8125ac6631df93ed720818c727d7e9f1c1dc82df /ardor3d-jogl
parent3ac6395ff673d4758653aaab3432f6795fb837cb (diff)
Adapts JoglNewtKey to the latest changes in the public API of NEWT
Diffstat (limited to 'ardor3d-jogl')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKey.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKey.java b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKey.java
index 30861a4..d3c8e8b 100644
--- a/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKey.java
+++ b/ardor3d-jogl/src/main/java/com/ardor3d/input/jogl/JoglNewtKey.java
@@ -10,9 +10,8 @@
package com.ardor3d.input.jogl;
-import com.jogamp.newt.event.KeyEvent;
import com.ardor3d.input.Key;
-
+import com.jogamp.newt.event.KeyEvent;
public enum JoglNewtKey {
@@ -130,12 +129,12 @@ public enum JoglNewtKey {
private final int _newtCode;
private final Key _key;
- private JoglNewtKey(final int newtCode, final Key key) {
+ private JoglNewtKey(final short newtCode, final Key key) {
_newtCode = newtCode;
_key = key;
}
- public static Key findByCode(final int newtCode) {
+ public static Key findByCode(final short newtCode) {
for (final JoglNewtKey ak : values()) {
if (ak._newtCode == newtCode) {
return ak._key;