From: Caspian Rychlik-P. <ci...@us...> - 2002-09-06 23:58:36
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory usw-pr-cvs1:/tmp/cvs-serv6385/src/java/org/lwjgl/input Modified Files: Keyboard.java Log Message: Fixed various bugs Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Keyboard.java 28 Aug 2002 21:58:14 -0000 1.9 +++ Keyboard.java 6 Sep 2002 23:58:33 -0000 1.10 @@ -204,8 +204,8 @@ 'p', '[', ']', - '*', - '*', + 0, + 0, 'a', 's', 'd', @@ -218,7 +218,7 @@ ';', '\'', '#', - '*', + 0, '\\', 'z', 'x', @@ -230,9 +230,9 @@ ',', '.', '/', - '*', - '*', - '*', + 0, + 0, + 0, ' ' }; private static final char shiftMap[] = { @@ -250,8 +250,8 @@ ')', '_', '+', - '*', - '*', + 0, + 0, 'Q', 'W', 'E', @@ -459,7 +459,7 @@ assert readBuffer != null : "Keyboard buffering has not been enabled."; if (readBuffer.hasRemaining()) { - key = readBuffer.get(); + key = readBuffer.get() & 0xFF; state = readBuffer.get() != 0; return true; } else |