I found a workaround for closing Dolphin with the escape key that was easier than learning enough C++ to insert an exit() call. I'm still interested in how to modify the source though. I would prefer compiling a special version of Dolphin over adding an extra layer of input configurations to the cabinet. Here's what I did:
install xbindkeys and wmctrl
run
to create a default config file
edit the file, comment out the examples with #, and add the lines
then save the file and run
This will make the escape key close the currently active window. I haven't set it up on the actual cabinet yet, but it's working great on this computer. I think instead of the active window, I will set it to close the Dolphin window specifically so it has no effect on all the other emulators that are working properly.
Instead of "wmctrl -c :ACTIVE:", I will use "wmctrl -c Dolphin-emu Rev XXXXX", or whatever the exact window title is.
install xbindkeys and wmctrl
run
Code:
xbindkeys --defaults > /home/user/.xbindkeysrc
to create a default config file
edit the file, comment out the examples with #, and add the lines
Code:
"wmctrl -c :ACTIVE:"
Escape
then save the file and run
Code:
xbindkeys
This will make the escape key close the currently active window. I haven't set it up on the actual cabinet yet, but it's working great on this computer. I think instead of the active window, I will set it to close the Dolphin window specifically so it has no effect on all the other emulators that are working properly.
Instead of "wmctrl -c :ACTIVE:", I will use "wmctrl -c Dolphin-emu Rev XXXXX", or whatever the exact window title is.