[Scummvm-devel] RFC: Flexible keymapping via new EVENT_ (post 0.10)

Eugene Sandulenko sev at scummvm.org
Tue Jun 5 09:13:02 CEST 2007


On Mon, 4 Jun 2007 23:38:31 +0200
Max Horn <max at quendi.de> wrote:

>    struct UserAction {
>      UserActionType type;  // an enum type, see below
>      String description; // Human readable description, for a GUI  
> keymapping config dialog
>      KeyDesc  defaultKey;  // an (optional) default key combo to be  
> assigned to this; includes modifier state
>      // ... your idea goes here
>    };
Add here our generic ever-present

     uint32 flsgs;

It saves time without breaking compatibility.

And of course, there should be developed a format for storing this
in .ini file. I.e. that will let user to remap these keys. Of course,
simple universal GUI dialog would be suitable for this too. And in this
case I wouldn't restrict it to small devices like we do now, but would
add to our core, as someone will want to remap, say, Alt-X or even F5
even on his PC.

> So, what do you think? Am I too ambitious? Is this overdesigned?  
> Better ideas? Improvements? Statements why we don't need this
> anyway? Your input is highly welcome (although I don't really expect
> much, as usual).
That is a definitely great idea, especially since it may let avoid that
nasty hack which use many backends where they query engine target to
map their keys.


Eugene




More information about the Scummvm-devel mailing list