From 18721df832a6f1014938570118a38912f6aa384d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 30 Jun 2006 23:05:28 +0000 Subject: [PATCH] Reverted the widening of Keyboard.getEventCharacter --- src/java/org/lwjgl/input/Keyboard.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/lwjgl/input/Keyboard.java b/src/java/org/lwjgl/input/Keyboard.java index c5de839a..82abb116 100644 --- a/src/java/org/lwjgl/input/Keyboard.java +++ b/src/java/org/lwjgl/input/Keyboard.java @@ -243,7 +243,7 @@ public class Keyboard { /** * The key events from the last read: a sequence of pairs of key number, * followed by state. The state is followed by - * a 4 byte java int representing the translated character. + * a 4 byte code point representing the translated character. */ private static IntBuffer readBuffer; @@ -442,8 +442,8 @@ public class Keyboard { /** * @return The character from the current event */ - public static int getEventCharacter() { - return eventCharacter; + public static char getEventCharacter() { + return (char)eventCharacter; } /**