Mednafen is the way to go and what I use. I believe to configure the controls you just do like you would in MAME, by selecting what button to assign to what key. If you grab a rom and load it up, then hit F2 for configuration. You can always hit F1 to see the command list options. I use Mednafen for NGP, NGP Color and of course, Nintendo Virtual Boy.