Re: [AD] key[] array with non-qwerty keyboards |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] key[] array with non-qwerty keyboards
- From: Elias Pschernig <elias@xxxxxxxxxx>
- Date: Sat, 16 Feb 2008 22:53:56 +0100
On Sat, 2008-02-16 at 21:13 +0000, Chris Jones wrote:
>
> Hmm, so this effectively means that you can't reliably pair readkey() with
> key[] in allegro to determine when a key is released. If this is a known
> feature and is not planned to be addressed in Allegro 4, then I think it
> should at least be mentioned in the key[] section of the documentation.
Well, the "scancode" part of readkey() is the same as in key[], so as
far as that, you can pair it. Just the mapping between scancodes and
actual unicode symbols has no guarantees. KEY_Y may produce "y" and "Y"
symbols on some keyboards, but "z" and "Z" on others.
--
Elias Pschernig <elias@xxxxxxxxxx>