Re: [hatari-devel] Win + SDL2 = no debugger

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Tue, 24 Nov 2015 01:30:30 +0000 (UTC)
schrieb Thorsten Otto <halgara@xxxxxxxx>:

> > Keycode encoding changed between SDL1 and SDL2, so if you're using
> > the encoding from SDL1, it's normal that it does not work anymore...
> I had similar problems when adding support for SDL2 to Aranym. Except
> for a few names, they are identical for the source, but the actual
> values are very different. So if you had written the internal codes
> to the config file before, that does not work anymore. The solution
> was to not write keycodes to the config file, but symbolic names.
> Since SDL_GetKeyName() also reports different names between the
> versions, i made a custom table for this. The existing code now
> expects either keycodes or names in the config file. If keycodes ares
> found they are assumed to be the old SDL1 keycodes, and translated.
> When a new config file is written, the symbolic names are used. That
> allows seemless upgrading from a config file that was written by an
> older version.The tables and conversion routines are in
> src/parameter.cpp in the AraNYM repo, if you want to take a look.

Thanks for the hint, Otto, I'll have a look when I've got some more
spare time.

 Thomas



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