mGBA Forums
Config file? - Printable Version

+- mGBA Forums (https://forums.mgba.io)
+-- Forum: mGBA (https://forums.mgba.io/forumdisplay.php?fid=1)
+--- Forum: General (https://forums.mgba.io/forumdisplay.php?fid=3)
+--- Thread: Config file? (/showthread.php?tid=346)



Config file? - cycyx - 12-05-2015

Hello there,

I'm using mgba-sdl on Arch Linux, and was wondering if you could provide a detailed configuration file, in order to allow us to change keyboard mapping for example.

Also, having a key to quit the emulator would be nice: launching mgba in fullscreen will lead to a painful experience when you want to quit...


RE: Config file? - endrift - 12-05-2015

Alt-F4 or whatever your window manager does to send a quit event will quit the emulator.

As for key mappings and other config stuff, that's a bit more detailed...it would look something like this:

Code:
[input.SDLK]
keyL=[...]
keyR=[...]
keyStart=[...]
keyDown=[...]
keyLeft=[...]
keyB=[...]
keyUp=[...]
keyA=[...]
keyRight=[...]
keySelect=[...]

Where each [...] is an SDL scancode.


RE: Config file? - cycyx - 12-05-2015

Thank you for your answer, that's kind of what I thought.

But still, a complete config file in the tarball would be nice, in order for the user to know how to configure rewinding, key mapping, and everything else, in case we do not use the GUI...

Plus, isn't the keymapping using SDL keycode instead of scancode?