From: <eli...@us...> - 2007-04-26 06:55:56
|
Revision: 2806 http://svn.sourceforge.net/java-game-lib/?rev=2806&view=rev Author: elias_naur Date: 2007-04-25 23:55:55 -0700 (Wed, 25 Apr 2007) Log Message: ----------- Added output of character code value to KeyboardTest Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java Modified: trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java 2007-04-26 05:58:35 UTC (rev 2805) +++ trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java 2007-04-26 06:55:55 UTC (rev 2806) @@ -147,8 +147,10 @@ int count = Keyboard.getNumKeyboardEvents(); while (Keyboard.next()) { + int character_code = ((int)Keyboard.getEventCharacter()) & 0xffff; System.out.println("Checking key:" + Keyboard.getKeyName(Keyboard.getEventKey())); System.out.println("Pressed:" + Keyboard.getEventKeyState()); + System.out.println("Key character code: " + character_code); System.out.println("Key character: " + Keyboard.getEventCharacter()); if (Keyboard.getEventKey() == Keyboard.KEY_ESCAPE) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |