DeSmuME is a Nintendo DS emulator
Go to file
rofl0r 58bbe693e1 cli: fix joypad and keyboard config retrieval
because the GTK frontends use GDK keysyms, not SDL ones, - the former
are being stored in the config file and used by the GTK ui) -  a temporary
workaround was put into place 14 years ago: the loaded config values
were simply being overwritten with the hardcoded defaults.

this commit removes the overriding of the config, and introduces
a cli frontend specific section "SDLKEYS", which is written by the
GTK2 frontend upon a configuration change.
it tries to convert the GDK keycodes into SDL2 ones while doing so.

an alternative solution (involving less code changes) would have been
to do the conversion in the cli frontend, but that would require having
the gdk header available for compilation, which may not be the case
if the user only wants the cli frontend. such a user could now create
the config file on another machine with the GTK frontend, or simply
manually take the desired values from the SDL_keycode.h header.

this change is instigated by one of the changes in PR #822, which simply
removed the workaround and kept parsing on error, which mitigated the
problem for some keys, but not all.
2024-10-28 11:32:43 +01:00
.github CI: update github workflows (#809) 2024-07-11 17:38:52 +02:00
desmume cli: fix joypad and keyboard config retrieval 2024-10-28 11:32:43 +01:00
tools Improve console allocation. 2024-10-24 19:20:24 +08:00
.gitignore Cocoa Port: Fix build errors that can occur when building on Xcode versions later than 10.3. 2021-08-26 14:32:25 -07:00
README.md change readme.md link to downloads since by far the most important single piece of information about desmume in 2021 is that you should download it. 2021-01-12 22:09:12 -05:00
license.txt does github want me to add this? 2017-02-28 15:11:58 -06:00

README.md

DeSmuME

AppVeyor CI Build Status

DeSmuME is a Nintendo DS emulator.

http://desmume.org/download