LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Jeramie on October 27, 2003, 20:57:40

Title: MacOS 10.3 and keyboard buffer
Post by: Jeramie on October 27, 2003, 20:57:40
On MacOS 10.3, I'm getting some weird keyboard behavior from the buffer. LWJGL correctly reports the correct Keyboard.key and Keyboard.state; but the Keyboard.character only works correctly when two keys are pressed nearly at once, and then only the higher key reports it's character correctly (ie, pressing A/S together will only result in the S Keyboard.character coming out correctly). Otherwise, the Keyboard.character is null.
Title: MacOS 10.3 and keyboard buffer
Post by: Jeramie on November 02, 2003, 16:43:29
Loaded in the debug version of the Mac library today. It reports:

UnsupportedCould not get unicode char count
Could not get unicode char count
Could not get unicode char count
...

- Hicks
Title: MacOS 10.3 and keyboard buffer
Post by: Jeramie on November 02, 2003, 17:12:56
The "Unsupported" appears to be caused by the attempt to adjust the thread priority level, so no worries there.
Title: MacOS 10.3 and keyboard buffer
Post by: princec on November 02, 2003, 19:20:27
Thanks Jeramie, Elias is working on getting that keyboard bug fixed and that's a great lead.

Cas :)
Title: MacOS 10.3 and keyboard buffer
Post by: elias on November 03, 2003, 13:06:28
Ok, try the new build at:

http://odense.kollegienet.dk/~naur/liblwjgl.jnilib

- elias
Title: MacOS 10.3 and keyboard buffer
Post by: Jeramie on November 03, 2003, 14:47:20
Closer but not quite yet... the character is correctly returned on key up now, but the key down behavior is still the same (only returns the latter character when two are pressed simutaneously). Still reporting the "Could not get unicode char count" error.
Title: MacOS 10.3 and keyboard buffer
Post by: elias on November 03, 2003, 15:17:08
Well, the error is ok now - I simply revert to fetching ascii characters instead. And that works. However, I'm at loss at why key down is broken like that. I could disable translation for key down events, but that seems quite counterproductive - translated keys normally appears at key down.
Title: MacOS 10.3 and keyboard buffer
Post by: elias on November 06, 2003, 14:46:10
Ok, try this brand new build with yet-another-translation-method(tm) builtin:

http://odense.kollegienet.dk/~naur/liblwjgl.jnilib

- elias
Title: MacOS 10.3 and keyboard buffer
Post by: Jeramie on November 10, 2003, 20:46:27
Looks like that last one fixed it, much obliged. Our development is now live on Macintosh too :-) Ya'll are the best.