getCharacter -> getEventCharacter
This commit is contained in:
parent
fe6db13931
commit
9adc719a08
|
@ -475,7 +475,7 @@ public class Keyboard {
|
|||
/**
|
||||
* @return The character from the current event
|
||||
*/
|
||||
public static char getCharacter() {
|
||||
public static char getEventCharacter() {
|
||||
return eventCharacter;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ public class KeyboardTest {
|
|||
int count = Keyboard.getNumKeyboardEvents();
|
||||
while (Keyboard.next()) {
|
||||
System.out.println("Checking key:" + Keyboard.getKeyName(Keyboard.getEventKey()));
|
||||
System.out.println("Key character: " + Keyboard.getCharacter());
|
||||
System.out.println("Key character: " + Keyboard.getEventCharacter());
|
||||
|
||||
if (Keyboard.getEventKey() == Keyboard.KEY_ESCAPE) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue