Fixed various bugs
This commit is contained in:
parent
c109f47de2
commit
9e58e87ce9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue