[Scummvm-devel] Keys in events.h

Paul Gilbert paulfgilbert at gmail.com
Fri Jun 15 06:29:55 CEST 2007


Ah. Then I'd be interested in clone2727's proposal as well. I recently
completed (but not yet commited) the fighting sequences code of Lure,
and had used the SDLK_ constants, since I didn't really like putting
arbitrary numbers directly in the code. It would be good if there were
a common set of constants I could refer to.

Speaking of which, how are keys handled on other systems? For example,
Lure's fight code, as well as providing mouse support, uses the arrow
keys to move the player and the numeric keypad for attack and defence
at high/mid/low levels. Do other systems have a mapping table that
converts their various keys to PC keyboard equivalents? Or does it
mean that the PC-based key handling code won't get triggered on other
systems.

Paul.

On 6/15/07, Torbjörn Andersson <eriktorbjorn at telia.com> wrote:
> Paul Gilbert wrote:
>
> > Would that really be necessary? As far as I'm aware, all the needed
> > key definitions are defined in SDL_keysym.h. Or is there some reason
> > these shouldn't be used?
>
> We can only use that in the SDL backend, though, not outside of it.
>
> Torbjörn Andersson
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
>




More information about the Scummvm-devel mailing list