I have been maintaining a patch to let the player in XMAME be controlled by external programs. My personal purpose for doing this is machine learning research, but I thought it might also be of interest to other people for various hacks.
The patch doesn't modify XMAME much, and so is easy to maintain (I haven't modified it at all through the last 4 XMAME releases and it still works fine), and has a negligible performance impact when not activated through the command line, so it can be used as your main binary. It dynamically loads the controller module at runtime and uses a prearranged name standard to know what function to pass frames to and what function to poll for input. There's also a python wrapper provided on the module side. Couple of issues on the TODO list: It depends on python (this will be fixed at some point if there is any interest) It forces specific keys to be configured as button 1, button 2, etc on XMAME (this will be fixed if someone tells me how to get it to read XMAME's configuration) This is not a call for the patch to be applied to the main tree, but as an announcement in case anyone else is looking for this functionality, or does in the future, since this will probably be picked up by the search engines. Patch can be found at http://organicrobot.com/mame/ Comments, patches, bug reports welcome. Thanks, alejandro _______________________________________________ Xmame mailing list [email protected] http://toybox.twisted.org.uk/mailman/listinfo/xmame
