On Wed, Jun 05, 2002 at 02:01:26PM +0200, Sven Neumann wrote: > you need to use KeyEvents and DirectFB-0.9.11 to be able to handle > this properly. Or you could try to convince us that we need to add key > identifiers for the remaining keys. The problem is how to name them. A > possible solution would be to use the names from a US keyboard layout.
That was my initial idea. > For your game that would mean that users with other keyboard layouts > would have problems to find the keys since they'd be labelled > differently than the key identifier they map to. Well in this case there wouldn't be any naming problems, since the game is Frontier First Encounters (Elite 3). Originally a DOS game, modified by John Jordan to run under Windows, DOS and Linux. So the key mappings are already pretty much fixed and the game manual assumes a US keyboard. The game periodically checks the status of all keys. It's managed as an array with a an element for each key. Therefore I have another array with the DirectFB identifiers in their corresponding locations. Then I simply run through it in a loop and update each key's status on the way. PS. Porting the Windows DirectX code to DirectFB was a breeze :) -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
