From: <eli...@us...> - 2007-08-28 07:38:39
|
Revision: 2891 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2891&view=rev Author: elias_naur Date: 2007-08-28 00:38:20 -0700 (Tue, 28 Aug 2007) Log Message: ----------- Mac OS X: Mapped the option key to Keyboard.KEY_LWIN and Keyboard.KEY_RWIN instead of KEY_*META like the alt key Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/KeyboardEventQueue.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/KeyboardEventQueue.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/KeyboardEventQueue.java 2007-08-27 20:57:29 UTC (rev 2890) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/KeyboardEventQueue.java 2007-08-28 07:38:20 UTC (rev 2891) @@ -329,11 +329,15 @@ // manually map positioned keys switch (key_code) { case KeyEvent.VK_ALT: // fall through - case KeyEvent.VK_META: if (position == KeyEvent.KEY_LOCATION_RIGHT) return Keyboard.KEY_RMENU; else return Keyboard.KEY_LMENU; + case KeyEvent.VK_META: + if (position == KeyEvent.KEY_LOCATION_RIGHT) + return Keyboard.KEY_RWIN; + else + return Keyboard.KEY_LWIN; case KeyEvent.VK_SHIFT: if (position == KeyEvent.KEY_LOCATION_RIGHT) return Keyboard.KEY_RSHIFT; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |