mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Don't resolve a key to a deprecated name.
This commit is contained in:
parent
ef62a8371b
commit
ee69763707
1 changed files with 2 additions and 1 deletions
|
|
@ -229,7 +229,8 @@ public class Keyboard {
|
|||
&& Modifier.isPublic(field.getModifiers())
|
||||
&& Modifier.isFinal(field.getModifiers())
|
||||
&& field.getType().equals(int.class)
|
||||
&& field.getName().startsWith("KEY_") ) {
|
||||
&& field.getName().startsWith("KEY_")
|
||||
&& !field.getName().endsWith("WIN") ) { /* Don't use deprecated names */
|
||||
|
||||
int key = field.getInt(null);
|
||||
String name = field.getName().substring(4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue