It's cool to have a plugin, but it's not
necessary, since joy2key is super versatile and you can set up everything from the software itself. Not trying to shit on your work hermione, maybe someone likes that better than what i'll suggest next, but in case someone has trouble with your thing, the default way to configure stuff to do this would be:
- First, there's no need to "close joy2key" to stop it's binding, simply create an "empty" profile to set as default, and a profile for your emulator with whatever bindings you need, i suggest short names that reference the emulator, like, say "Fusion (genesis)" would be fine.
- Now go to "Settings>associate profile with applications"
- On the lower part theres "default behaviour", set "specify a default profile" and select your "empty" profile on the dropdown.
- Now press "add" to add a profile-app link
- Application name is arbitrary, put anything that helps you identify and remember the target application
- Application path, it's easier to set up by pressing "capture aplication info" button below, and then opening your desired app, but you could also simply copy the direct path to the .exe file
- Asociated profile, select the profile created for this aplication on the dropdown (in my example it would be "Fusion(genesis)").
That's it! now joy2key should only work as intended while using the desired app, and do nothing when you're using any others.
You can set up as many profile-app links as you want, as long as you keep "empty" as default you shouldn't have problems with the mappings.
And to make sure joy2key is always running during your gameplay, create a bat file that launches both joy2key and attract-mode, and start the frontend using that.