diff options
author | Julien Gouesse <[email protected]> | 2013-03-07 22:23:59 +0100 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2013-03-07 22:23:59 +0100 |
commit | abd70fc8fe9de9fbd1e8d04c83f214ec0db51584 (patch) | |
tree | 8125ac6631df93ed720818c727d7e9f1c1dc82df /ardor3d-jogl | |
parent | 3ac6395ff673d4758653aaab3432f6795fb837cb (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.java | 7 |
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; |