Fixed various bugs

This commit is contained in:
Caspian Rychlik-Prince 2002-09-06 23:58:33 +00:00
parent c109f47de2
commit 9e58e87ce9
1 changed files with 9 additions and 9 deletions

View File

@ -204,8 +204,8 @@ public class Keyboard {
'p', 'p',
'[', '[',
']', ']',
'*', 0,
'*', 0,
'a', 'a',
's', 's',
'd', 'd',
@ -218,7 +218,7 @@ public class Keyboard {
';', ';',
'\'', '\'',
'#', '#',
'*', 0,
'\\', '\\',
'z', 'z',
'x', 'x',
@ -230,9 +230,9 @@ public class Keyboard {
',', ',',
'.', '.',
'/', '/',
'*', 0,
'*', 0,
'*', 0,
' ' }; ' ' };
private static final char shiftMap[] = private static final char shiftMap[] =
{ {
@ -250,8 +250,8 @@ public class Keyboard {
')', ')',
'_', '_',
'+', '+',
'*', 0,
'*', 0,
'Q', 'Q',
'W', 'W',
'E', 'E',
@ -459,7 +459,7 @@ public class Keyboard {
assert readBuffer != null : "Keyboard buffering has not been enabled."; assert readBuffer != null : "Keyboard buffering has not been enabled.";
if (readBuffer.hasRemaining()) { if (readBuffer.hasRemaining()) {
key = readBuffer.get(); key = readBuffer.get() & 0xFF;
state = readBuffer.get() != 0; state = readBuffer.get() != 0;
return true; return true;
} else } else