Re: [AD] Allegro 4.2 planning

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> 
> Is there any particular reason we couldn't do this for Allegro? It's what
> I'd expect KEY_A to mean anyway...
> Can't be helped though, changing it now would be breaking the API - but
> maybe for 4.3? Or is there some reason this is undesireable?
> 

It wouldn't break the API.. the unix console as well as the Mac OSX
port already behave like that. (And I'm not sure how SDL behaves in
Windows, it might actually be like SDL there, since someone said
DirectX only reports scancodes. I somehow doubt it though.)

The reason for it is, if you make a game where you can e.g. move with
the keys "asdw" instead of the cursor keys. In this case, if you code
it in a lazy way and just check for KEY_A KEY_S and so on - it will
keep working with checking only the PC scancodes (just other letters
would be printed on those keys). IMHO, this only made sense when
Allegro was DOS only - since at that time, you could be sure who would
use it would also have a PC keyboard. With non PC keyboards, or for
more exotic keys, it can't work anyway. And allowing the user to
adjust the keys always is superior.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/